Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to use my Mobile application with multi servers.
This application has been built on VS 2003 .NET2.0
And as you know, It do not support Dynamic webservice that can be found in the properties of the webservice "Behavior:Dynamic/Static"

I want to be able to package my application "Mobile application" for end users "With the same webservice but deferent URL" without having a separated project "Source code" for each.
So I'm thinking of having the produced exe with app.config to package my application using installshiled.
Please note that I've tried to read the URL from .txt file but every time I use this method the following error:

The thread No Name (0xe1ca4) has exited with code 0 (0x0).
The thread No Name (0x24394c) has exited with code 0 (0x0).
The program [628] rundll32.exe: GTL Mobile.exe has exited with code 0 (0x0)
And when I reset the webservise to the original method my application works fine.

Now I'm trying to create my own web.config/app.config file to read the webservice URL from and to be able to change it dynamically without the need to re compile my code, but I unable to access the web.config from the Reference.vb of that webservice.

Any help or suggestion for any other method would be appreciated.

Thank yoy
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900