 |
| 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
|
|
|
|

January 21st, 2008, 02:00 PM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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?
|
|

January 21st, 2008, 03:08 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
|
|
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
|
|

January 21st, 2008, 03:31 PM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Worked, thank you.
|
|

January 21st, 2008, 03:39 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
|
|
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
|
|

January 21st, 2008, 03:43 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
|
|
Glad you got it working. I posted the web service bit slightly after your second post, so just disregard it.
- Bob
|
|

January 21st, 2008, 04:41 PM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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?
|
|

January 21st, 2008, 05:13 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
|
|
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
|
|

January 21st, 2008, 05:29 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
|
|
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
|
|

January 21st, 2008, 05:52 PM
|
|
Friend of Wrox
|
|
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Thank you Bob, you have been VERY helpful. It's sometimes hard for a beginner (like me) to encompass everything at once.
|
|

January 21st, 2008, 07:00 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
|
|
You're welcome.
|
|
 |