有对这个职位的数量,我已经尝试过,现在许多事情。但无济于事。我自己一个WinForms开发者基本上,开始对本网站的东西工作几天就回来为我公司正在采取举措网站
There are number of posts on this and I have tried many a things by now. But to no avail. Myself a Winforms Developer basically, started working on this Web stuff few days back as my company is taking Web initiatives.
我有一个ASP.Net项目,我想举办它在本地IIS。在项目属性 - >网络设置我选择了使用本地IIS服务器,并给了一个网址为本地主机/ MyApp的。我试图访问它在我的Firefox浏览器,并获得误差 HTTP错误503服务不可用。
I have a ASP.Net project and I want to host it on local IIS. In Project properties -> Web settings I chose Use Local IIS Server and gave a url as localhost/MyApp. I tried accessing it on my firefox browser and received error as HTTP Error 503. The service is unavailable.
previously我得到了很多其他错误,我一个一个固定的他们。但是这一个击中。这些都是在我的项目,我有设置
Previously I got many other errors and I one by one fixed them all. But struck with this one. These are the settings I have in my project
不过,我想提一个怪异的行为。下面是我面对的东西。
But I would like to mention a weird behavior. Following is something that I am facing
我见过following链接,我已经尝试过了。对于上述行为,我伸手 href=\"forums.iis/t/1183845.aspx\">。根据这个链接,计算机名称不应该有。在里面。我没有任何 在我的电脑的名字,但确实有 - 在里面。也是我的域名中包含。在里面。而且我不能改变这些设置为我的办公室的笔记本电脑和我们的TFS设置绑定到我们的域名和计算机名。
I have seen following link and I have already tried it. For the above behavior I reached here. According to this link, Computer name should not have . in it. I don't have any . in my Computer name but do have - in it. Also my domain name contains . in it. Moreover I can't change these settings as its my office laptop and our TFS settings are bound to our Domain and Computer Names.
谁能帮我明白发生了什么?请指导我。谢谢你。
Can anyone help me to understand whats happening? Please guide me. Thanks.
修改
我已经按照的Global.asax code。 的Application_BeginRequest 方法是在同一个文件是空的。
I have following code in Global.asax. Application_BeginRequest method is empty in same file.
protected override void Application_Start(object sender, EventArgs e) { base.Application_Start(sender, e); String _path = String.Concat(System.AppDomain.CurrentDomain.RelativeSearchPath, ";", System.Environment.GetEnvironmentVariable("PATH")); System.Environment.SetEnvironmentVariable("PATH", _path, EnvironmentVariableTarget.Process); MyAppLog.Initialize(); MyAppLog.WriteMessage("Application Started"); }更新
根据注释中的建议,我能够从卡西尼号所经营的网站。
As per the suggestions in Comment, I am able to run the website from Cassini.
推荐答案一个可能的原因,这可能发生的是,应用程序池在IIS中配置为在一些自定义帐户运行,这个账户不存在或密码错误有被提供。看应用程序池的IIS中的高级属性占它使用。
One possible reason this might happen is that the Application Pool in IIS is configured to run under some custom account and this account either doesn't exist or a wrong password has been provided. Look at the advanced properties of the Application Pool in IIS for which account it uses.
另外,事件日志中可能包含至于为什么应用程序池的第一次请求立即停药更多信息。
Also the Event Log might contain more information as to why the Application Pool is stopping immediately on the first request.
更多推荐
http错误503服务不可用。应用程序池停止访问网站
发布评论