Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ASP.NET C# web application locally?

For a web application I am using ASP.NET C# (OS- Windows7, .NET 4) and the task has done. But I don't know how to run it locally in Windows7 as well as in Server 2008(.NET 4 and IIS installed in server 2008). And I have to run it in both the platfrom. So any help please. Thanks a lot.

like image 273
Jai Android Avatar asked Mar 04 '11 05:03

Jai Android


1 Answers

If you have IIS 7 installed on your Win 7 machine, then:

  1. Open you project in VS.NET
  2. Right click on your project's node in solution explorer and choose "Properties"
  3. Switch to the "Web" tab.
  4. Select the radio "Use Local IIS web server"
  5. Click the "Create Virtual Directory" button

That takes care of getting your application to run using IIS. You can also develop/debug ASP.NET applications like this.

As regards, deploying your ASP.NET application, after making sure all pre-requisites are installed. You'll need to use IIS Manager to create a website and associate that website to an application pool.

like image 132
Shiv Kumar Avatar answered Sep 20 '22 12:09

Shiv Kumar