Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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?

Reply With Quote
  #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

Reply With Quote
  #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.

Reply With Quote
  #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

Reply With Quote
  #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

Reply With Quote
  #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?

Reply With Quote
  #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



Reply With Quote
  #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


Reply With Quote
  #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.

Reply With Quote
  #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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:41 AM.


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