Geeks With Blogs

News FAQ on the correct forum to post at: http://forums.asp.net/p/1337412/2699239.aspx#2699239

Tatworth

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.

Posted on Saturday, January 8, 2011 7:30 PM | Back to top


Comments on this post: Installing a new ASP.NET 4.0 site on a Windows 2008 server.

# re: Installing a new ASP.NET 4.0 site on a Windows 2008 server.
Requesting 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?
Left by موسسه خانه حقوق آریا on Jan 10, 2011 7:30 PM

# re: Installing a new ASP.NET 4.0 site on a Windows 2008 server.
Requesting Gravatar...
You need to configure old applications to run in a pool set for required version.
Left by Clive Chinery on Jan 10, 2011 8:16 PM

# kolkata seo
Requesting Gravatar...
Installing a new ASP.NET 4.0 site on a Windows 2008 server. really cool post, very informative thanks for sharing.
Left by james on Jul 30, 2011 6:34 AM

# re: Installing a new ASP.NET 4.0 site on a Windows 2008 server.
Requesting 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
Left by trickyflower on Oct 30, 2012 12:15 PM

# Asp.net Live Project Course in Kolkata
Requesting 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.
Left by Udal Bharti on Jul 17, 2014 8:25 AM

Your comment:
 (will show your gravatar)


Copyright © TATWORTH | Powered by: GeeksWithBlogs.net | Join free