Home > Software Development > Setting Up IIS for ASP.Net Web Applications On Windows 7

Setting Up IIS for ASP.Net Web Applications On Windows 7

December 16th, 2011 Leave a comment Go to comments

This week I spent some time deploying a Web application I developed using Microsoft Visual Web Developer 2010 Express (it’s free). For that, I installed Microsoft Internet Information Service (IIS) on my Windows 7 enterprise edition. This turned out pretty straight-forward: Control Panel – Programs – Turn Windows Features on or off. In the Windows Features dialog box, just locate the Internet Information Service and check on it. After a click on the OK button, the IIS (version/build is IIS 7.5.7600.16385) was installed.

But it didn’t work for my ASP.Net Web application. To run it, I had to go through extra steps. I figure I would probably set up an IIS server on other servers later, therefore better document it for future. To make it simple, I omitted the error messages and how I researched the issues. It would be great if you also find it helpful.

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure


Here are extra steps after the default installation:

  1. By default, ASP.Net is not turned on. I had to go back to the Windows Features dialog box and click down the Internet Information Service – World Wide Web Services – Application Development Features. There are several items including ASP.Net. To make it simple, I just checked them all.
  2. Afterward, I got an issue with targetFramework value in the Web.config. My Web application defaults it to 4.0, but it’s not recognized. To fix that, open the IIS manager (just type in inetmgr upon clicking Start). Click on the Application Pools in the left side tree, then double click DefaultAppPool. In the Edit Application Pool dialog box, from the .Net Framework version dropdown list, pick .Net Framework v4.0.30319.
  3. It still didn’t work. It turned out that ASP.Net needs to be registered per this article. Running the following two commands should do the trick.
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe –i

You need to change the path to the specific versions of .NET on your machine.

Categories: Software Development Tags: ,
  1. July 21st, 2014 at 14:58 | #1

    When I click the button Use IIS Web Server, type in teh url of the web apiatclipon (on a remote development server), and attempt to open with the browser, I get Could not find the server http:\\DevServer\Proj1 on teh local machine Also, the Use IIS Web Serer radio button clears and the Use Visual Studio Development Server is automatically set. For some reason, my VS2005 doesn’t want me to open my solution on a remote server ..Any ideas?

  1. No trackbacks yet.