ASP.NET Web Service SoapException When Client Built With MSBuild -
ASP.NET Web Service SoapException When Client Built With MSBuild -
i have .net (2.0) windows forms application uses asp.net web service hosted part of .net (3.5) web site. web site hosted on windows server running iis7. when run forms application in visual studio (2010), able utilize web service without problem. however, when build forms application msbuild (4.0), builds , runs, when service used next exception thrown:
system.web.services.protocols.soapexception: server unable read request. ---> system.invalidoperationexception: there error in xml document (the line number varies). ---> system.formatexception: input string not in right format.
i used ms network monitor view soap see problem in xml document. appear @ to the lowest degree 1 tag isn't beingness parsed correctly. example, ms network monitor displays 1 of apparently broken tags follows:
- element: xmlelement:<country> - usa</ - stag: <country> - tag: <country> - tagname: country name: country content: usa</
an etag (end tag) isn't recognized. content should "usa" , etag should "</country>.
"
why happening? specifically, difference between application running in visual studio , 1 built msbuild cause problem? have compared build output , same files, there size differences between of them.
it turns out caused out of date web service proxy classes. updating web references in client application fixed problem.
asp.net web-services soap msbuild asmx
Comments
Post a Comment