p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   Problem with deployment (http://p2p.wrox.com/showthread.php?t=65402)

snufse January 21st, 2008 02:00 PM

Problem with deployment
I have a web application developed (my first) on my local PC. I run debug and all is fine. Now I want to create a set up project. I add the set up project to the same solution. I run the build/rebuild. All is fine. Now I want to install, click the install and the set up wizard comes up. I select the site - Default We Site and a set my virtual directory and click next. It finishes the installation without any errors. Now I look in IIS and see the entry under Default Web Site. When I click the site I see a bin directory that is empty. I click the property and see my my local path = C:\inetpub\wwwroot\BSPropService\.
From here I am confused as to be able to launch the application. Under the bin directory I am used to seeing an exe (from windows environment). How do I proceed from here???? Do I need to create an URL?

Bob Bedell January 21st, 2008 03:08 PM

In IIS, right click one of the .aspx pages (preferably your startup page) installed in your site and select 'Browse' from the popup menu. In IIS 7.0 you may need to first right click your web site, and select 'Switch to Content View' to see the .aspx pages installed on your site, then select a page.

To launch your site in your browser, open your browser and type the following in the address bar:




snufse January 21st, 2008 03:31 PM

Worked, thank you.

Bob Bedell January 21st, 2008 03:39 PM

Unless BSPropService is a Web Service (.asmx file), in which case you need to, preferably, create an app to consume it (and get some visual feedback from the service).

Or in IIS, right click the .asmx file and select 'Browse',

Or in your browser address bar type:


In either of these last two cases, ASP.NET will generate a test page that describes the methods exposed by the web service interface.

You could also type:


to retrieve a Web Services Description Language document which also describes the methods exposed by the web service interface and forms the basis of the ASP.NET test page.


- Bob

Bob Bedell January 21st, 2008 03:43 PM

Glad you got it working. I posted the web service bit slightly after your second post, so just disregard it.

- Bob

snufse January 21st, 2008 04:41 PM

I think my problem was that when I published the web site, I just accepted the default value being "C:\Documents and Settings\vgwprja\My Documents\Visual Studio 2005\WebSites\BSPropService" where I think I should have published to "C:\Inetpub\wwwroot\BSPropService" When I did the "right click" in IIS, the web site was empty. Now I can see my App_date, Bin and all the .aspx pages. Makes sense?

Bob Bedell January 21st, 2008 05:13 PM

C:\Inetpub\wwwroot is just the physical path on your computer for the Default Web Site home directory that appears in IIS. If you want to run your application in IIS, publish it to this directory.

With VS 2005, the ASP.NET Development Server is installed by default, and can run file-system Web sites installed else where in your file-system. It simply serves pages to browser requests on your local computer.

But, yes, if you want to use IIS as your Web server, publish your apps to C:\Inetpub\wwwroot.



Bob Bedell January 21st, 2008 05:29 PM

Should also mention that 'localhost' is a TCP/IP reserved name meaning 'this computer'. It always translates to the loopback IP address

If you direct your web browser to http://localhost it should display the home page (iisstart.htm on IIS 7.0) of the web site (Default Web Site) being served (by IIS) from the computer running the browser, i.e. your computer.

Just think of 'localhost' as an alias for 'C:\Inetpub\wwwroot'.

- Bob

snufse January 21st, 2008 05:52 PM

Thank you Bob, you have been VERY helpful. It's sometimes hard for a beginner (like me) to encompass everything at once.

Bob Bedell January 21st, 2008 07:00 PM

You're welcome.

All times are GMT -4. The time now is 06:21 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.