Hi
This is the first time I'm really delving into Web Services, and I seem to
be getting this strange issue. I have a Windows App .NET project which makes
calls to a Web Service Project, and I have an issue that whenever I rebuild
and/or redeploy the Web Service Project, my WinApp will get a SoapException
whenever it tries to call a web method from the service.
The exact circumstances occur like this:
1. After modifying the .asmx, I rebuilt the project with no errors
2. I explore in IE to the .asmx, and can see my changes fine in the Web
Service API.
3. Then I go to the WinApp project and I update the Web Reference to the
service. I rebuild the WinApp project with no errors
4. When I try to run the WinApp I get the following error:
SoapException: Object Reference not set to an instance of an object.
The stack trace of the error goes to the Invoke method of that Web Method in
the Reference.cs of the Web Reference.
5. If I restart IIS then try to run the WinApp again, the application works
fine and the Web Services work as expected.
Any ideas what might be my error? any suggestions would be very appreciated
Thanks and Regards
Nel