简体   繁体   English

HTTP错误403.14 ASP配置

[英]HTTP Error 403.14 ASP configuration

I get this error while trying to initiate a project in ASP. 尝试在ASP中启动项目时收到此错误。 I have already added 我已经加了

<appSettings>
   <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>

To the Web.config but I still get this error. Web.config但仍然出现此错误。 Also, I have tried initiating the IIS Express by opening appcmd.exe but this did not fix it either. 另外,我尝试通过打开appcmd.exe启动IIS Express,但这也没有解决。 None of the solutions I have found worked for me so far. 到目前为止,我发现的所有解决方案都没有对我有用。 Any ideas?. 有任何想法吗?。

Step 1. Open IIS 步骤1.打开IIS

Step 2. Go to the WebSite you are facing issue with. 步骤2.转到您遇到问题的网站。

Step 3. Click on Default Document Button, you will find it on the right side tab in IIS. 步骤3.单击“默认文档”按钮,您将在IIS的右侧选项卡中找到它。

Step 4. You can see a list of default documents, but your default page (aspx file) is not mentioned here and that is causing the issue. 步骤4.您可以看到默认文档的列表,但是此处未提及您的默认页面(aspx文件),这是导致问题的原因。

  1. Add your file here. 在此处添加文件。 (For example: Index.aspx) (例如:Index.aspx)

You can also add the following entry into the web.config: 您还可以将以下条目添加到web.config中:

<system.webServer>
    <defaultDocument>
       <files>
         <add value="Index.aspx" />
       </files>
    </defaultDocument>
    <directoryBrowse enabled="false" />
</system.webServer>

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM