I am having problems publishing an ASP.NET MVC4 application to an IIS 6. The settings appear to be correct, but the browser displays "404 error."
Has anyone ever been through this?
I am having problems publishing an ASP.NET MVC4 application to an IIS 6. The settings appear to be correct, but the browser displays "404 error."
Has anyone ever been through this?
Go into application configuration in your virtual directory and insert a wildcard (Application COnfiguration> Mappings> Wildcard application) pointing to the following DLL (check the version of your .NET (4 or 2)
c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll
Remember to uncheck the "verify file exists" option.
I just posted a question / answer in this regard , see if that works out for you!
Basically, it's a problem with UrlRewrite. Add this to your web.config in <system.webServer>
:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>