Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change web reference IP in C# asp.net web forms project

I'm working on a project that was not created by me. This project contains a web reference to some windows service that is run on a remote machine.

In Visual Studio 2010 it looks like this:

enter image description here

I used VS's search to get the IP in the solution and see it in 5 places in a project. Also, it seems there is code in 3 places (others are is web.config and config.config files) with the IP reference that were generated by Visual Studio.

I have never used web references - is it possible to change the IP pointing to this web service without recompiling?

like image 831
Vitalii Avatar asked Mar 05 '26 04:03

Vitalii


1 Answers

If I understand this correctly, you have to change the proxy URL to be dynamic. Then, you'll be able to access it via your application's configuration files.

This post on CodeProject should explain it pretty well for you.

like image 135
antinescience Avatar answered Mar 06 '26 19:03

antinescience



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!