[MVC4] How to Publish to IIS Server

  • 1111
  • 0

Before publishing MVC project to IIS Server, you MUST make .NET Framework Version of your project match with Server's.

STP1. Check Server .NET Framework Version by REGEDIT

 

 

STP2. Downgrade .NET Framework Version of MVC Project to match with Server's by SolutionExplorer > Application > TargetFramwork > .NET Framework 4

 

 

STP3. Set Publish by SolutionExplorer > ProjectName > RightClick > Publish

 

STP4. Add an Application Pool, and using this Pool to Convert to Application on IIS Server