Blog Stats
  • Posts - 1355
  • Articles - 1
  • Comments - 130
  • Trackbacks - 0

 

Installing a new ASP.NET 4.0 site on a Windows 2008 server.

I have been specifically requested to blog about getting an ASP.NET 4.0 site working on a Windows 2008 server that has never run a 4.0 web site before.

  1. Make sure the 4.0 framework is installed on the server!
  2. Patch it will ALL the security patches have been applied. ((for a live server, make sure that you tested the patches on your development server first)
  3. You will find the HTTP Log status codes at http://support.microsoft.com/kb/943891 - they are very important in understandign the IIS logs)

After installing, turn on 4.0, by doing the following:

  1. Start the Internet Information Services (IIS Manager)
  2. Select the server node in the connections pane. (this is the node above Application Pools, FTP Sites and Server Farms)
  3. Double click the ISAPI and CGI Restrictions item in the centre pane
  4. You should see 1 or 2 ASP.NET v4.0.30319 entries, select Enable in the Actions pane for all of them.
  5. ASP.NET 4.0 should now run!

Remeber after creating your new 4.0 ASP.NET site. select the Sites node and find out the Id of it. By default, the IIS logs are at C:\inetpub\logs\LogFiles and if your site is say 21, then the logs will be created in the W3SVC21 sub-directory. The key point about using these logs is that in the event of an error when trying to start the site for the first time, the log will contain the status code and the sub-code. By having the full code and sub-code, set up issues can be resolved in minutes instead of hours.


Feedback

# re: Installing a new ASP.NET 4.0 site on a Windows 2008 server.

Gravatar After installing .NET framework 4 on my Win2008 R2 server, my old ASP.NET programs (asp.net 1,3.5) failed to start!!!!
After uninstall it worked fine
Why? 1/10/2011 7:30 PM | موسسه خانه حقوق آریا

# re: Installing a new ASP.NET 4.0 site on a Windows 2008 server.

Gravatar You need to configure old applications to run in a pool set for required version. 1/10/2011 8:16 PM | Clive Chinery

# kolkata seo

Gravatar Installing a new ASP.NET 4.0 site on a Windows 2008 server. really cool post, very informative thanks for sharing. 7/30/2011 6:34 AM | james

# re: Installing a new ASP.NET 4.0 site on a Windows 2008 server.

Gravatar These are great tips and information that you have posted on your blog. I have read the installation steps for the same process on some other blogs but I wasn’t satisfied. Not only that the instructions lacked clarity but also it was very hard to follow them. Your post is very easy to follow.learn more 10/30/2012 12:15 PM | trickyflower

# Asp.net Live Project Course in Kolkata

Gravatar Nice post, Installing a new ASP.NET 4.0 site on a Windows 2008 server is very informative for all developers.
Thanks sharing more information. 7/17/2014 8:25 AM | Udal Bharti

Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

 

 

Copyright © TATWORTH