2017-08-03 45 views
0

我有一点与IIS的问题,我无法再运行我的网站。在重新安装IIS并删除applicationhost.config后,我设法修复了它。现在我可以从Visual Studio推出的网站,但如果我上网给它我得到:ASP.NET Core重置后返回404 applicationhost.config

未找到

HTTP错误404请求的资源没有找到。

我在日志中看不到任何请求。为什么会发生这种情况,我该如何解决?

applicationhost.config看起来像这样;

<site name="arnvanhoutte" id="2"> 
    <application path="/" applicationPool="Clr4IntegratedAppPool"> 
     <virtualDirectory path="/" physicalPath="E:\OneDrive\Apps\Web\arnvanhoutte\arnvanhoutte" /> 
    </application> 
    <bindings> 
     <binding protocol="http" bindingInformation="*:52250:localhost" /> 
       <binding protocol="https" bindingInformation="*:44397: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" /> 

这是日志后我跑iisexpress.exe /config:"applicationhost.config" /site:"arnvanhoutte" /apppool:"Clr4IntegratedAppPool" /trace:error

Starting IIS Express ... 
Initializing the W3 Server Started CTC = 2060781 
W3 Server initializing WinSock. CTC = 2060796 
W3 Server WinSock initialized. CTC = 2060796 
W3 Server ThreadPool initialized (ipm has signalled). CTC = 2060796 
Start listenerChannel http:0 
Successfully registered URL "http://localhost:52250/" for site "arnvanhoutte" application "/" 
Successfully registered URL "https://localhost:44397/" for site "arnvanhoutte" application "/" 
Registration completed for site "arnvanhoutte" 
AppPool 'Clr4IntegratedAppPool' initialized 
InitComplete event signalled 
IIS Express is running. 
Enter 'Q' to stop IIS Express 

回答

0

我设法将我的用户到组来修复它IIS_IUSRS