Saturday, January 5, 2013

ASP.NET 4.0 has not be registered on the Web server

Once I got this error after installing Visual Studio 2010 SP1 and installing ASP.Net MVC 4 on my system.

"ASP.NET 4.0 has not be registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly. Press F1 for more details."

After some searching I have found the solution which I want to share with you.

Solution:
Go to programs menu and open the Run command. Write the following command in the Open textbox:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i

Hit enter or click OK button.

A command prompt appears and then close automatically after doing some processing.

Now restart your Visual Studio and your issue gets resolved.

No comments:

Post a Comment