简体   繁体   中英

Deploy MVC Application to IIS 7.5

I have created a ASP.NET MVC Application with .Net Framework 4.5. I have tried to deploy in IIS 7.5 with Application Pool 4.0 but the following errors. Is there anything I should change in IIS Configuration or in Application Web.conf.

Thanks in advance !

错误403。目录浏览已禁用

错误404。现在启用目录浏览

Try adding this to your web.config

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer>

Make sure you have the following settings for your website in IIS

1) Authentication Mode - Windows or Forms Enabled (as per your web.config) 2) Directory Browsing - Enabled (In fact your 1st screen shot clearly says - On the Directory Browsing page, in the Actions pane, click Enable.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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