0
votes

I have a correct working ASP.NET MVC 4 (.NET Framework 4.5.6 ) website locally. It works fine under VS 2015 and IIS 7 of Windows 7.

When I deploy the same folder to MS WIn Server 2008 R2 it does not work properly and I am facing lots of errors. Please, check the log.

Any clue how to fix it?

enter image description here

1

1 Answers

0
votes

I could fix it using following steps

  1. Re-registration .NET Framework 4 using menu RUN

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir

  1. Install "Recommened configuration IIS 7.0" using MS Web Platform tool

enter image description here

  1. Adding this code to modules section of web.config
 <system.webServer>
    <modules  runAllManagedModulesForAllRequests="true" >
       <remove name="UrlRoutingModule-4.0" />
      <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
    </modules>