Friday, February 22, 2013

Unable to create the virtual directory. ASP.NET 2.0 has not been registered on the Web server.

Error:

Unable to create the virtual directory. ASP.NET 2.0 has not been registered on the Web server. You need to manually configure you Web server for ASP.NET 2.0 in order for your site to run correctly.

Fix:

Open Command Prompt in Admin mode

Navigate to C:\Windows\Microsoft.Net\Framework\

To identify the framework versions installed, type dir /ad

 

image

Navigate to the required framework folder

> cd v2.0.50727

Run asp.net registration tool

> aspnet_regiis /i

 

This will install the asp.net of the selected framework into IIS

 

Notes:

.Net framework 2.0, 3.0 and 3.5, uses CLR 2.0

.Net framework 4.0 and 4.5 uses CLR 4.0

1 comment:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from .Net Core Training in Chennai. or learn thru .Net Core Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Es6 Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

    ReplyDelete