7

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.

Jai Android
  • 2,131
  • 10
  • 38
  • 55
  • what kind of asp.net application is it? That is ASP.NET website project or asp.net web application project? – Shiv Kumar Mar 04 '11 at 07:32

2 Answers2

7

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.

Shiv Kumar
  • 9,599
  • 2
  • 36
  • 38
1

At first you need .NET 4 Framework on the local computer and you have to add the IIS functionality from Windows 7 corresponding add/remove software (activate functions). I presume you have Windows 7 Pro, because the home / basic edition aren't supporting server / development task like those.

If this tasks already is done, i think you just have to put your files into the iis (standard) inetpub folder (c:\inetpub\wwwroot). You can configure IIS in Windows 7 on mostly the same way as in Windows Server 2008.

Because it appears that you aren't a user of Visual Studio I would also recommend trying Visual Web Developer Express or WebMatrix. Both of those ships with an internal webserver that starts/stops themself while debugging the web application.

Independent
  • 2,924
  • 7
  • 29
  • 45