Wednesday, February 29, 2012

How to solve 403 error while deploy ASP.NET MVC?

run "aspnet_regiis –iru"



If you install VS2010 and/or .NET 4 first, then later install IIS, you need make sure IIS is configured to know about ASP.NET 4 otherwise IIS will have no idea how to run ASP.NET 4 applications.
There's a simple workaround:

·        If you are already in this state, drop to the command line and navigate to the FX install directory.  Then run "aspnet_regiis –iru". 

·        Note if you are on a 64-bit machine, run this command from the 64-bit FX install directory – not the 32-bit installation directory.
Reference:
http://www.hanselman.com/blog/ASPNET4BreakingChangesAndStuffToBeAwareOf.aspx


No comments:

Post a Comment