C
Chris
I have a winform base class in which I dynamically set a web reference Url:
myService.Url = <WebServer> + "MyService.asmx";
where <WebServer> is pulled from my App.config file.
There is no problem working with this base class and the solution compiles
and runs fine. However, I am unable to display any descendant forms in
design mode in VS.NET 2003. I get a message indicating that:
"An exception occurred while trying to create and instance of <form base
class>. The exception was "Invalid URI: The format of th URI could not be
determined."
Clearly, it cannot resolve the dynamic web reference in the base class. The
immediate work-around is to:
1. comment out the assignment and rebuild
2. do any descendant form design
3. uncomment the assignment and rebuild
Surely, there is a mode elegant mechanism to address this issue?
Thanks,
Chris.
myService.Url = <WebServer> + "MyService.asmx";
where <WebServer> is pulled from my App.config file.
There is no problem working with this base class and the solution compiles
and runs fine. However, I am unable to display any descendant forms in
design mode in VS.NET 2003. I get a message indicating that:
"An exception occurred while trying to create and instance of <form base
class>. The exception was "Invalid URI: The format of th URI could not be
determined."
Clearly, it cannot resolve the dynamic web reference in the base class. The
immediate work-around is to:
1. comment out the assignment and rebuild
2. do any descendant form design
3. uncomment the assignment and rebuild
Surely, there is a mode elegant mechanism to address this issue?
Thanks,
Chris.