Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Development vs. Production environment

Reply
Thread Tools

Development vs. Production environment

 
 
UJ
Guest
Posts: n/a
 
      12-26-2005
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.


 
Reply With Quote
 
 
 
 
Piyush Thakuria
Guest
Posts: n/a
 
      12-28-2005
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.


--
Piyush Thakuria
Technical Lead
Microsoft Technologies
Wipro


"UJ" wrote:

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

 
Reply With Quote
 
 
 
 
UJ
Guest
Posts: n/a
 
      01-02-2006
Thanks. I'll probably go with #2.

Jeff.

"Piyush Thakuria" <> wrote in message
news:E2D5098E-53D0-443C-8080-...
> 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.
>
>
> --
> Piyush Thakuria
> Technical Lead
> Microsoft Technologies
> Wipro
>
>
> "UJ" wrote:
>
>> 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.
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to move from a Desktop / Development environment to 24/7 Onlilne Production? Joseph Ruby 1 11-29-2006 05:04 PM
development environment architecture for ASP.NET development team Akhlaq Khan ASP .Net 4 09-27-2004 01:33 PM
J2EE Development/Production Environment Advice John Java 1 04-30-2004 02:51 PM
Regarding J2EE production environment Suja Java 3 11-27-2003 04:44 PM
Help!!! ASP.NET Crashing in production environment Cheung, Jeffrey Jing-Yen ASP .Net 0 08-13-2003 02:55 PM



Advertisments