Win7 IIS7 ASP.NET MVC3.0 部署問題
1、應用程式集區採用傳統模式,framework4.0。可能存在許可權問題,解決辦法:在進階設定的標識設為LocalSystem。
一般mvc都採用整合模式,我為什麼要選擇傳統模式呢?因為要識別httpModules配置。
2、開啟IIS的處理常式映射設定,”添加萬用字元指令碼映射“
請求路徑:*
可執行檔:C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
名稱:mvc
3,你還可能遇到情況,處理Routing的訪問之外,其他的頁面或者js就不能訪問了,網上解決方案:
在web.config中設定
<system.web>
<buildProviders>
<add extension="*" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
<httpHandlers>
<add verb="*" path="*" type="System.Web.StaticFileHandler"/>
</httpHandlers>
</system.web>
1、應用程式集區採用傳統模式,framework4.0。可能存在許可權問題,解決辦法:在進階設定的標識設為LocalSystem。
一般mvc都採用整合模式,我為什麼要選擇傳統模式呢?因為要識別httpModules配置。
2、開啟IIS的處理常式映射設定,”添加萬用字元指令碼映射“
請求路徑:*
可執行檔:C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
名稱:mvc
3,你還可能遇到情況,處理Routing的訪問之外,其他的頁面或者js就不能訪問了,網上解決方案:
在web.config中設定
<system.web>
<buildProviders>
<add extension="*" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
<httpHandlers>
<add verb="*" path="*" type="System.Web.StaticFileHandler"/>
</httpHandlers>
</system.web>