Search

Friday, August 2, 2013

Deploying ASP.NET MVC application on windows 7 IIS web server

Configuring IIS on Windows 7 :
  1. Go to Control Panel -> Programs -> Turn Windows Features on or off .
      1.1 Internet Information Services (IIS) is checked, even explore the depth of this root     folder and check almost all checkboxes .
      1.2 Windows Process Activation Service and explore depth of this folder.
  2. Go to Control Panel -> Administrative Tools -> services-> IIS related services.
  3. Now you can open IIS manager, steps are:
    3.1 open run window and then enter “inetmgr” .

Publishing web application through Visual studio 2012 express :
  1. Right click on projectName in solution explorer and click publish.
  2. Now, give profile name :XXXX
  3. serviceURL : If publishing from localhost then “localhost”.
  4. Site/Application : “Default Web Site/requiredname”
  5. Destination URL : “http://localhost:80/requiredname”
  6. click on Validate connetion to see GREEN checked sign.


Open IIS manager and refresh. You will see uder Default Web Site your site name.
   i.e. requiredname you given in Site/Application field.
  1. Enable directory browsing.
  2. Set deault document to index.cshtml
  3. in application pool make sure that .NET Framework is v4.0
  4. right click on Default Web Site ->Manage Web Site -> Start.

Just check whether “requiredname” directory appears on following path:

C:\inetpub\wwwroot\projectname\


I hope this information will reduce your search effort and you will get started with your ASP.NET MVC Application ASAP.
                                                                                                                                            -Cheers.


No comments:

Post a Comment