How can we Register ASP.NET 4.0 in Windows Application Pool IIS 7?


Staff member
If you have not install ASP.NET 4.0 on your server then you will get below error and to resolve this error and run your ASP.NET 4.0 application, you have to follow below steps:

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

How to solve above error?

You have to install ASP.NET version on server from this link framework&p=0&r=10&t=&s=Relevancy~Descending.

You can check below steps to Register ASP.NET 4.0:

  • First login to Windows VPS server.
  • Now open C:\Windows\Microsoft.NET\Framework64\v4.0.30319 location on 64 bit OS or if you are using windows 32 bit OS then you have to open C:\Windows\Microsoft.NET\Framework\v4.0.30319 location.
  • Search command prompt in search bar and right click on it to open command prompt with administrator access.
  • Now enter below command to navigate to below path.
cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  • You will find aspnet_regiis.exe file on above path.
  • Now you can enter below command to register ASP.NET with IIS.
aspnet_regiis -i
  • After all above steps you will be able to see the ASP.NET application pool in IIS. Now you can refresh your website and you will not get error.