Deploying ASP.Net MVC 4 App on IIS 7

后端 未结 2 936
离开以前
离开以前 2020-12-17 03:02

I created a simple app and ran it on visual studio. Then I went to \"Project properties > web\" and changed it to \"Use local IIS server\".

Now when I debug, I can\'

相关标签:
2条回答
  • 2020-12-17 03:30

    It seems like routing handler is not being loaded...

    Are you sure the application pool is set to integrated? If yes try to add this line in your web.config:

    <modules runAllManagedModulesForAllRequests="true"></modules>
    

    Please, make sure you have also these handlers registered in your application:

    <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    
    0 讨论(0)
  • 2020-12-17 03:30

    Ensure that HTTP Redirection is installed in IIS Web server role

    0 讨论(0)
提交回复
热议问题