In the morning I have deployed one web Application on local IIS. Now in the hope of watching how my website’s landing page looks I did entered application's address in IE and suddenly something unexpected occurred IE shown me Yellow page of error. I was quite certain about my web application’s quality then what went wrong. by looking at the yellow screen shown below I got some clue what went wrong.
looking at the screen above, its somewhat clear now that it has something to do with .net framework. It happened due to IIS registration with .net framework was disturb somehow.
So my next step is to Registering an IIS with .net framework 4.0. Why we should register an IIS with particular version of .net framework ? well, the reason behind that is when When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool.
When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool.
Following are the steps to register IIS with the asp.net version 4.0.
Now you done with registering IIS with asp.net 4.
looking at the screen above, its somewhat clear now that it has something to do with .net framework. It happened due to IIS registration with .net framework was disturb somehow.
So my next step is to Registering an IIS with .net framework 4.0. Why we should register an IIS with particular version of .net framework ? well, the reason behind that is when When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool.
When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool.
Following are the steps to register IIS with the asp.net version 4.0.
- Go to start Menu –> All Programs –> Microsoft Visual studio 2010-> Visual Studio Tool
- Right click on Visual Studio Command prompt. Click on Run as Administrator option. the system will present below screen
- Then you have to navigate to the directory where definition for .net framework exists. generally it resides in Windows\Microsoft.Net\Framework\V4.0.30319.
- when you are in target directory Type command “aspnet_regiis.exe -i” Press enter then system start registering IIS with target framework. as shown in below screen. here option –i Installs ASP.NET 4 and updates existing applications to use the ASP.NET 4 version of the application pool. It updates both the IIS Classic mode and the IIS Integrated mode handler and script mappings in the IIS metabase.
Now you done with registering IIS with asp.net 4.
Comments
Post a Comment