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
armbsuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kdtreshCommented:
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.
0
armbsuAuthor Commented:
Gurus,

I am still looking for answers.  
0
jmoreno8238Commented:
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
0
raghav_mpCommented:
  1. Launch Visual Web Developer Express.
  2. Select Tools, External Tools to display the External Tools dialog. In the Title box, enter Publish &Website(non-updatable).
  3. Click the browse button next to the Command box and browse to aspnet_compiler.exe located in c:\Windows\Microsoft.NET\Framework\v2.0.50727.
  4. Click Open to add the command line for aspnet_compiler.exe.

    Now that you've got the correct command line for the aspnet_compiler.exe, it's time to add the arguments that will correctly pre-compile your application. This is where you'll see the true power of the External Tools dialog.

  1. Type -p " in the Arguments box. (That's an opening double-quote after the p.)
  2. Click the right-facing arrow next to the Arguments box and select Project Directory.
  3. Add a trailing double-quote to the Arguments box.
  4. Press the spacebar to add a space at the end of the existing arguments.
  5. Type -v / " after the space you just entered.
  6. Click the right-facing arrow next to the Arguments box and select Project Directory.
  7. Type \..\CompiledApp" after the existing arguments.

    At this point, the Arguments box should contain the following:

  8. -p "$(ProjectDir)" -v / "$(ProjectDir)\..\CompiledApp"
  9. Type -u.
-p "$(ProjectDir)" -v / "$(ProjectDir)\..\CompiledApp" -u
 
Have a great day.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
armbsuAuthor Commented:
helped!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.