Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / January 2006

Tip: Looking for answers? Try searching our database.

Development vs. Production environment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
UJ - 26 Dec 2005 12:39 GMT
How do people handle in the code when you have a production and development
system? I'm using VS.Net with C# and VB.Net. Do I make references to each
and then do something in the code or is there are any way do I don't have to
always remember to change the reference right before making a new version?

Can I put the actual address in the .config file and use it from there?

TIA - Jeff.
Piyush Thakuria - 28 Dec 2005 21:44 GMT
There are 2 ways of doing it:
1. Tightly Bind your application with a web reference and create two MSI's -
one for Production environment and the other for Development environment. So
you Production MSI is pointing to your production web service and the
Development MSI is pointing to the development web service.
2. Loosly bind the application with your web service. Dynamically assign the
URL to the web service using the following code:

DummyService.Url = ConfigurationSettings.AppSettings[valueToRead];

Your valueToRead would be the URL of the production and development boxes.
Just comment and uncomment the URL, you want to use.

Please revert back if the above mentioned solutions worked for you.

Signature

Piyush Thakuria
Technical Lead
Microsoft Technologies
Wipro

> How do people handle in the code when you have a production and development
> system? I'm using VS.Net with C# and VB.Net. Do I make references to each
[quoted text clipped - 4 lines]
>
> TIA - Jeff.
UJ - 02 Jan 2006 14:03 GMT
Thanks. I'll probably go with #2.

Jeff.

> There are 2 ways of doing it:
> 1. Tightly Bind your application with a web reference and create two
[quoted text clipped - 25 lines]
>>
>> TIA - Jeff.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.