http错误503服务不可用。应用程序池停止访问网站

编程入门 行业动态 更新时间:2024-10-27 14:20:08
本文介绍了http错误503服务不可用。应用程序池停止访问网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有对这个职位的数量,我已经尝试过,现在许多事情。但无济于事。我自己一个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

  • 应用程序池设置为ASP.Net V4.0经典
  • 应用程序池启用32位应用程序属性为true
  • 应用程序池已启动
  • 项目建设属性设置为任何CPU 为目标框架
  • Application Pool set to ASP.Net v4.0 Classic
  • App Pool Enable 32 bit Application property is true
  • App Pool is started
  • Project build property set to Any CPU for Target framework
  • 不过,我想提一个怪异的行为。下面是我面对的东西。

    But I would like to mention a weird behavior. Following is something that I am facing

  • 应用程序池已启动
  • 我尝试访问我的本地网站(通过给网址为本地主机/ MyApp的)
  • 我收到错误的 HTTP错误503服务不可用
  • 应用程序池已停止
  • 我见过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服务不可用。应用程序池停止访问网站

    本文发布于:2023-11-12 19:24:49,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1582317.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:不可用   应用程序   错误   网站   http

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!