一般来说,我对设置web服务器真的很陌生。我已经在Windows 8上安装了iis8,我正在尝试在本地建立一个小网站,同时进行一些开发。在IIS中,我选择添加站点,给出一个名称,指向我有index.html文件的位置(我尝试过不同的位置,最新的位置在c:\inetpub\wwwroot\test -文件夹中),否则使用所有默认设置。但是,当我尝试浏览到localhost时,我得到

HTTP错误503。业务不可用。

我已经验证了池已经启动,并且在目标文件夹上赋予了IIS_IUSRS完全控制

我到处搜索,但没有找到任何解决我的问题的东西,在EventLog或C:\Windows\System32\LogFiles\HTTPERR文件夹中没有任何有用的东西

有人能告诉我怎么了吗?


当前回答

在我们的例子中,没有记录任何内容(除了503的HTTP错误日志条目),但是IIS中web应用程序的Enabled Protocols值有一个拼写错误!不是http,而是https在协议之间有一个句号:http。https

其他回答

在我们的例子中,没有记录任何内容(除了503的HTTP错误日志条目),但是IIS中web应用程序的Enabled Protocols值有一个拼写错误!不是http,而是https在协议之间有一个句号:http。https

这可能是因为连接到数据库的数量。我有这样的情况,所以,写了一个去构造函数和杀死db打开连接,它解决了。

我看到这个错误后,安装url重写模块,我尝试从安装以前的版本: https://www.microsoft.com/en-us/download/details.aspx?id=7435 它修正了我的错误

如果您有McAfee HIPS,并且在事件查看器应用程序日志中看到以下错误:

模块DLL C:\Windows\System32\inetsrv\ hipiisengineestu . DLL加载失败。 数据就是错误。

然后McAfee.com上的这个变通方法解决了我的问题。

原文如下:

Click Start, Run, type explorer and click OK. Navigate to: %windir%\system32\inetsrv\config Open the file applicationHost.config as Administrator for editing in Notepad. Edit the <globalModules> section and remove the following line: <add name="MfeEngine" image="%windir%\System32\inetsrv\HipIISEngineStub.dll" /> Edit the <modules> section and remove the following line: <add name="MfeEngine" /> After you have finished editing the applicationHost.config file, save the file, then restart the IIS server using iisreset or by restarting the system.

当我在开发机器上清理我的IIS时,我遇到了这个问题,我不知何故为我实际开发web的子文件夹创建了一个虚拟文件夹,我无法清除,并产生冲突。

我必须用

C:\Windows\System32\inetsrv\appcmd.exe list vdir

然后逐个删除问题虚拟目录使用

C:\Windows\System32\inetsrv\appcmd.exe delete app /app.name:"Default Web Site"/{name of virtual directory}