How to Register ASP.NET 4.0 with Application Pool in IIS 7?

It is required to register ASP.NET 4.0 with your application pool inorder to run your ASP website build on ASP.NET 4.0 or you will receive the below error.

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.

        

Solution :

First of all, you will need to install the required ASP.NET version on your server where you have hosted the website. Checkout Microsoft Website to download the ASP.NET

Following are the steps to Register ASP.NET 4.0 with Application Pool in IIS.

  1. Log in to your Windows Server.

  2. Go to the location (C:\Windows\Microsoft.NET\Framework64\v4.0.30319) if you have 64 bit OS or Go to the location (C:\Windows\Microsoft.NET\Framework\v4.0.30319) if you have 32 bit OS and copy the path and copy the path.





  3. Open the command prompt with Run as administrator. You can Right-Click on command prompt to open it with administrator access.



  4. Once you open the command prompt, navigate to the path which we have copied on Step (2). This path should have the file called aspnet_regiis.exe

    cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319


  5. Enter the below command to register ASP.NET with IIS.

    aspnet_regiis -i
  6. You will see the ASP.NET application pool inside the IIS application pool in IIS. Refresh the website and error should be fixed.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to configure the Windows Firewall to allow only specific IP Address to connect your ports?

Following steps will guide you to open the ports for a specific IP address. Login to the...

How to Upgrade PHP Version in Windows VPS?

More often you are required to upgrade the php version for your web applications in Windows VPS....

How to Change the RDP User's Password in Windows Server 2012 R2?

Following is the steps to change the Administrator Password of Window Server 2012 R2. Log on...

I can not access (login) Remote Desktop using the IP address to my Windows VPS. What am I missing here?

Note: Following instructions do not appply to VPS customers who are accessing their Remote...

How to create FTP account in Windows VPS or Dedicated server Manually?

The File Transfer Protocol (FTP) is useful for Web hosting companies to allow their customers to...