I have two small, simple applications that use a Web Service to send/receive datat from a sql database.
Both of them work fine when i run them from debug mode in VS 2005.
Application A works perfectly when i run the ApplicationA.exe file copied from the .../bin/release folder to any location.
Application B only works when i copy both the ApplicationB.exe AND the ApplicationB.exe.Config file from the .../bin/release folder. If i only copy the .EXE, or put it in a directory WITHOUT it's .config, i receive an error.
I've traced that the error occurs when it is trying to get data through the web service. It fails at:
Dim wrGetData As New CDMWebSvc.CDMService
wrGetDS = wrGetData.GetUserInfo("UserName")
The error is "Object reference not set to an instance of an object"
As soon as i put the .config file back, it works. Both Applications use this same web reference and even the same functions within the reference. How come one has to have the .config, and the other does not?
Thanks
Both of them work fine when i run them from debug mode in VS 2005.
Application A works perfectly when i run the ApplicationA.exe file copied from the .../bin/release folder to any location.
Application B only works when i copy both the ApplicationB.exe AND the ApplicationB.exe.Config file from the .../bin/release folder. If i only copy the .EXE, or put it in a directory WITHOUT it's .config, i receive an error.
I've traced that the error occurs when it is trying to get data through the web service. It fails at:
Dim wrGetData As New CDMWebSvc.CDMService
wrGetDS = wrGetData.GetUserInfo("UserName")
The error is "Object reference not set to an instance of an object"
As soon as i put the .config file back, it works. Both Applications use this same web reference and even the same functions within the reference. How come one has to have the .config, and the other does not?
Thanks