为什么我总是收到一个503错误? [英] why do I keep getting a 503 error?

查看:124
本文介绍了为什么我总是收到一个503错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET项目目前通过IIS防爆preSS本地托管。

不过,我想这是对我们的一个示范的一个客户访问,我有这个工作之前,删除了几个冗余站点从对ApplicationHost.config,随后加入我目前网站的细节后不过,它已停止功能,当我去我的IP,EG xxx.xxx.xxx.xxx:85~~V它与一个503错误回来。

我想知道是否有人可以帮我找出这个问题?我对ApplicationHost.config似乎都很正常,虽然我已经贴在下面,以供参考。

我已经尝试了应用程序池标识设置为网络服务,并以我自己的本地帐户,我也将加载用户配置文件为假,但无济于事。

我也禁用Windows防火墙用于测试目的,所以我知道这不是问题的一部分,无论是。

任何及所有的帮助将是最AP preciated!

顺便说一下,以下是对ApplicationHost.config只有一部分我修改,其余不包括在内。

 < applicationPools>
            <添加名称=Clr4IntegratedAppPoolmanagedRuntimeVersion =V4.0managedPipelineMode =集成CLRConfigFile =%IIS_USER_HOME%\\ CONFIG \\ aspnet.config自动启动=真/>
            <添加名称=Clr4ClassicAppPoolmanagedRuntimeVersion =V4.0managedPipelineMode =经典CLRConfigFile =%IIS_USER_HOME%\\ CONFIG \\ aspnet.config自动启动=真/>
            <添加名称=Clr2IntegratedAppPoolmanagedRuntimeVersion =2.0managedPipelineMode =集成CLRConfigFile =%IIS_USER_HOME%\\ CONFIG \\ aspnet.config自动启动=真/>
            <添加名称=Clr2ClassicAppPoolmanagedRuntimeVersion =2.0managedPipelineMode =经典CLRConfigFile =%IIS_USER_HOME%\\ CONFIG \\ aspnet.config自动启动=真/>
            <添加名称=UnmanagedClassicAppPoolmanagedRuntimeVersion =managedPipelineMode =经典自动启动=真/>          <添加名称=默认应用managedRuntimeVersion =managedPipelineMode =集成CLRConfigFile =%IIS_USER_HOME%\\ CONFIG \\ aspnet.config自动启动=真/>
            < applicationPoolDefaults managedRuntimeLoader =V4.0>
                <中processModel />
            < / applicationPoolDefaults>
        < / applicationPools>        <! -           在<&listenerAdapters GT;部分定义了协议,与该
          Windows进程激活服务(WAS)结合。         - >
        < listenerAdapters>
            <添加名称=HTTP/>
        < / listenerAdapters>        <网站及GT;
<网站名称=hendrixlivetestID =2>
    <应用路径=/applicationPool =默认应用>
        < virtualDirectory路径=/physicalPath =C:\\用户\\里斯\\桌面\\ myprojectfile/>
    < /用途>
    <&绑定GT;
        <绑定协议=HTTPbindingInformation =*:85/>
      <绑定协议=HTTPbindingInformation =*:85:W/>
      <绑定协议=HTTPbindingInformation =*:85:xxx.xxx.xxx.xxx/>    < /绑定>
< /网站>
            < siteDefaults>
                <日志文件的LogFormat =W3C目录=%IIS_USER_HOME%\\日志/>
                < traceFailedRequestsLogging目录=%IIS_USER_HOME%\\ TraceLogFiles启用=真maxLogFileSizeKB =1024/>
            < / siteDefaults>
            < applicationDefaults applicationPool =默认应用/>
            < virtualDirectoryDe​​faults allowSubDirConfig =真/>
        < /网站>


解决方案

您的应用程序池是越来越坠毁。尝试并重新安装.NET 4框架和服务器重试

I have an ASP.NET Project currently hosted locally via IIS Express.

However, I want this to be accessible to one of our clients for a demonstration, I have got this to work before, However after deleting a couple of redundant sites from applicationhost.config, and subsequently adding the details for my current site, it has ceased to function, when I go to my IP, E.G xxx.xxx.xxx.xxx:85 it comes back with a 503 error.

I was wondering if anyone could help me pinpoint this problem? my applicationhost.config appears to be fine, though I have pasted that in below for reference.

I have already tried setting the Application Pool Identity to Network Service, and to my own local account, I have also set "load user Profile" to false, but with no avail.

I have also disabled windows firewall for testing purposes, so I know that's not part of the issue either.

Any and all help would be most appreciated!

By the way, the below is the only part of applicationhost.config I've modified, the rest is not included.

<applicationPools>
            <add name="Clr4IntegratedAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
            <add name="Clr4ClassicAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Classic" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
            <add name="Clr2IntegratedAppPool" managedRuntimeVersion="v2.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
            <add name="Clr2ClassicAppPool" managedRuntimeVersion="v2.0" managedPipelineMode="Classic" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />
            <add name="UnmanagedClassicAppPool" managedRuntimeVersion="" managedPipelineMode="Classic" autoStart="true" />

          <add name="DefaultAppPool" managedRuntimeVersion="" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />


            <applicationPoolDefaults managedRuntimeLoader="v4.0">
                <processModel />
            </applicationPoolDefaults>
        </applicationPools>

        <!--

          The <listenerAdapters> section defines the protocols with which the
          Windows Process Activation Service (WAS) binds.

        -->
        <listenerAdapters>
            <add name="http" />
        </listenerAdapters>

        <sites>


<site name="hendrixlivetest" id="2">
    <application path="/" applicationPool="DefaultAppPool">
        <virtualDirectory path="/" physicalPath="C:\Users\reece\Desktop\myprojectfile" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:85:" />
      <binding protocol="http" bindingInformation="*:85:w" />
      <binding protocol="http" bindingInformation="*:85:xxx.xxx.xxx.xxx" />

    </bindings>
</site>


            <siteDefaults>
                <logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
                <traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
            </siteDefaults>
            <applicationDefaults applicationPool="DefaultAppPool" />
            <virtualDirectoryDefaults allowSubDirConfig="true" />
        </sites>

解决方案

Your application pool is getting crashed. try and reinstall .NET 4 framework and try again on server

这篇关于为什么我总是收到一个503错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆