Wrox Programmer Forums
|
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
 
Old August 20th, 2007, 02:59 PM
Authorized User
 
Join Date: Jan 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deployment Web Services

Hi everyone,

I have an ASP.NET web application that uses a custom build ASP.NET web service. I need to deploy these two on client machine.

I included the reference of web service in my ASP.NET project however the server will change after deploying and I am not too sure whether it will work.

How do we deploy web services and web applications in such a way that the reference of web service inside an application is not affectred.

I would appreciate help and/or pointers.

Tahir

 
Old August 20th, 2007, 09:49 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

When you set up a web reference in a .NET project, the URL to the service is hard coded in the proxy class code to the address you used during the initial "Add Web Reference..." setup. However, after you create an instance of the service proxy class you can set the URL to whatever is appropriate for your final deployment location. Usually you would place the URL in an application configuration file (app.config, web.config) and set it based on that value so you can change it as needed without recompiling code.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in deployment of web application premnaath ASP.NET 2.0 Professional 1 September 3rd, 2007 08:48 PM
deployment of web applications sudhanshusekhar ASP.NET 2.0 Basics 0 December 26th, 2006 08:51 AM
web services yanis97 J2EE 0 April 12th, 2006 08:38 AM
Web Services Error (Ch18) - No Web Disc. Info. ElPato BOOK: Beginning ASP.NET 1.0 2 April 13th, 2005 03:27 PM
Web scripts installer - remote deployment madhukp Classic ASP Basics 0 October 8th, 2003 07:51 AM





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