Link to home
Start Free TrialLog in
Avatar of armbsu
armbsu

asked on

Publish a website in VS 2008 express edition

Hello,

I am a newbie here so please exuse me for any stupid question.  I am trying to publish a website using VS 2008 express edition. I right click on the project name in solution explorer and it says Successded and then when I type localhost in the address bar, nothing happens.  I also noticed that I have 2 versions of IIS, one is IIS and other one is IIS7.  How do I do it?

Thanks
Avatar of kdtresh
kdtresh

Using VS 2008 Standard, I just publish to a folder and copy the contents to the home directory of the IIS site. You also have to make sure you're using the correct version of .NET on the web site.

You also have to make sure you've got the correct files in there. If it's looking for index.htm and you've got default.aspx in there, you won't see your page.
Avatar of armbsu

ASKER

Gurus,

I am still looking for answers.  
You have two options you can publish/compile the web application or just place code in the web root of the iis (the second one is only recommended for testing purposes).

Publish procedure:
In visual studio with the project open go to the menu Build>Publish <your web application>.
If this option is not available in the express edition then do the following:
aspnet_compiler -v /MyIISWebApplication MyTargetPath

The aspnet_compiler is in the framework folder.

Anyways you can drop either your source code or the compiled project in the 'c:\inetpub\wwwroot'
Select you folder in the IIS > right click > properties > In the properties dialog hit create.

Once the application has been created you can test it.

Make sure that the folder has the appropriate permissions for the following users:
IUSR_<Machine Name> (internet guest account, not sure if its necesary for IISv6 and up, but you can do this test yourself)
ASPNET
NETWORK SERVICE (IISv6 and up)

Also you can create a virtual directory in the IIS and point it towards your folder instead of moving around the application, your call. Word of advice emulate the production environment as much as you can if your going to use a precompiled application then do that, and if your going to use a virtual directory then do that.

Hope this helps
ASKER CERTIFIED SOLUTION
Avatar of raghav_mp
raghav_mp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of armbsu

ASKER

helped!!!