VS2013在IISExpress中将AppPool更改为经典模式不再有效

时间:2013-12-20 20:11:19

标签: visual-studio-2013 iis-express

运行appcmd set app“mywebsite /”/ applicationPool:“Clr4ClassicAppPool”后,我试图重新运行Web应用程序,发现mywebsite应用程序的IISExpress将不再在IISExpress中加载。

1 个答案:

答案 0 :(得分:3)

我能够通过在C:\ Users \ myusername \ Documents \ IISExpress \ config中找到applicaitonhost.config文件并更新应用程序池并将其设置为Clr4IntegratedAppPool来解决此问题。

希望这可以帮助那些遇到同样问题的人。

    <sites>
        <site name="WebSite1" id="1" serverAutoStart="true">
            <application path="/">
                <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%\WebSite1" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation=":8080:localhost" />
            </bindings>
        </site>
        <site name="mywebsite" id="2">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="C:\Projects\mywebsite" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:56103:localhost" />
            </bindings>
        </site>
        <siteDefaults>
            <logFile logFormat="W3C" directory="%IIS_USER_HOME%\Logs" />
            <traceFailedRequestsLogging directory="%IIS_USER_HOME%\TraceLogFiles" enabled="true" maxLogFileSizeKB="1024" />
        </siteDefaults>
        <applicationDefaults applicationPool="Clr4IntegratedAppPool" />
        <virtualDirectoryDefaults allowSubDirConfig="true" />
    </sites>