V
Vish Ramachandran
I am trying to run a web service project with multiple web services. The problem is that this works sometimes, and sometimes it does not work. I've worked on this problem for nearly 3 days now, and still no solution The exception is
An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dl
Additional information: Client found response content type of '', but expected 'text/xml'
When I try to run the web service from the project on the Internet Explorer test page, it runs without any problem, but then if I run it from another application using a web reference, it does not work
I tried creating the project all over again by copying the code for the web services exactly from the previous code, it worked initially, but then after a few minutes it started giving the same error agin
I suspected that it is the namespace of the services which is probably giving the problem, so I commented the WebService attribute for all web service classes, and then tried. It worked! Just to make sure that this was the problem, I reverted back, and it didnt work! Really satisfied that I solved the problem, I commented back the attributes and tested it again. IT DID NOT WORK
Now I am totally stuck not knowing what to do. Can anyone please help me
Thanks a lot in advanc
Vis
An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dl
Additional information: Client found response content type of '', but expected 'text/xml'
When I try to run the web service from the project on the Internet Explorer test page, it runs without any problem, but then if I run it from another application using a web reference, it does not work
I tried creating the project all over again by copying the code for the web services exactly from the previous code, it worked initially, but then after a few minutes it started giving the same error agin
I suspected that it is the namespace of the services which is probably giving the problem, so I commented the WebService attribute for all web service classes, and then tried. It worked! Just to make sure that this was the problem, I reverted back, and it didnt work! Really satisfied that I solved the problem, I commented back the attributes and tested it again. IT DID NOT WORK
Now I am totally stuck not knowing what to do. Can anyone please help me
Thanks a lot in advanc
Vis