Failed to deserialize the object

2742
2
07-19-2010 08:52 AM
by Anonymous User
Not applicable
Original User: arcpatrol

My problem is this, I'm using 2.0 for wpf api, I have published a web service, when I try to load in the component map, I get the following error:
Failed to deserialize the object of type ESRI.ArcGIS.Client.Services.MapServiceInfo. Found an unexpected character '<'.
0 Kudos
2 Replies
by Anonymous User
Not applicable
Original User: SharpGIS

What does the JSON response from your service look like?
Ie add ?f=pjson to the url endpoint and display it in the browser.
0 Kudos
by Anonymous User
Not applicable
Original User: arcpatrol

First of all, thanks for replying, when I put that entry in my browser(? F = pjson)
(just after the web service address), gives me the option to save an XML
file, this is the content of the file:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
  <ServiceException code="InvalidFormat">
Can't parse XML request.
  </ServiceException>
</ServiceExceptionReport>
0 Kudos