Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 21st, 2008, 02:00 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default 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?

  #2 (permalink)  
Old January 21st, 2008, 03:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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:

http://localhost/NameOfYourSite/Name...artUpPage.aspx

HTH,

Bob

  #3 (permalink)  
Old January 21st, 2008, 03:31 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Worked, thank you.

  #4 (permalink)  
Old January 21st, 2008, 03:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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:

http://localhost/NameOfYourSite/NameOfYourService.asmx

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:

http://localhost/PTServicecs/ProjectTracker.asmx?WSDL

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.

HTH,

- Bob

  #5 (permalink)  
Old January 21st, 2008, 03:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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

- Bob

  #6 (permalink)  
Old January 21st, 2008, 04:41 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

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?

  #7 (permalink)  
Old January 21st, 2008, 05:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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.

Best,

Bob



  #8 (permalink)  
Old January 21st, 2008, 05:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

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

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


  #9 (permalink)  
Old January 21st, 2008, 05:52 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

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

  #10 (permalink)  
Old January 21st, 2008, 07:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

You're welcome.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deployment Problem Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 10 December 28th, 2007 05:50 PM
Deployment Problem with Sub Reports amirmunir Crystal Reports 0 May 28th, 2006 10:57 PM
problem in deployment shupiR ASP.NET 1.0 and 1.1 Basics 0 December 22nd, 2005 01:45 AM
Deployment problem krishnabhargav ASP.NET 1.0 and 1.1 Professional 0 November 28th, 2005 01:07 AM
Deployment Problem LULU VB.NET 0 October 9th, 2003 01:07 AM





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