Deploying a ASP .NET 4.0 Framework website on IIS 6
Make sure the .NET Framework 4.0 is registered with IIS 6.0. To accomplish this...
- Right click on the application in IIS, and click on Properties.
- In the properties window that appears, click on the ASP .NET tab.
- The ASP .NET version drop down should list 4.0... as an option.
- Select it if it is available.
If the Framework is not registered with IIS, then...
- Open a command prompt window (In Windows Server 2003, it will be available in the Accessories grouping, or just type cmd in a search window)
- Navigate to c:\Windows\Microsoft.Net\Framework64\v4.0.30319 (This is assuming the windows installation was in it's default location)(The Framework version will vary depending on what is installed)
- Type in aspnet_regiis.exe /iru in the command prompt and press enter.
- The Installation will be executed.
- Now, you will be able to select 4 in the ASP .NET version drop down in the properties window of you application.
In IIS 6.0 you cannot have a mix of applications with different frameworks running under one application pool. A new Application Pool needs to be created. To do this...
- Right click on Application Pools
- Select New
- Select Application Pool
- Enter any name in the Application Pool ID text box
- Leave the Application Pool Settings to use the default settings
- Click Ok
Now, the application has to be set to this new pool, To do this...
- Right click on the application, and select Properties
- In the Directory tab of the Properties window (the very first tab), select the new application pool name from the drop down list of Application Pool (it is at the very bottom of the window)
Verify that the .NET 4.0 Framwork that was installed is allowed for use by IIS. To do this...
- Collapse the Web Sites node
- Below the Web Sites node, you will find another node called Web Service Extensions
- Click on it
- On the right side will be a listing of Web Service Extensions
- Look for ASP .NET v4.0.30319 (or the version you have installed) and check the Status
- If the Status is Prohibited then Clcik on the Allow button to the left of the listing
- The status will change to Allow now
That should do it. Good Luck.
No comments:
Post a Comment