Select to view content in your preferred language

4004 Silverlight ErrorCategory : ManagedRuntimeError

3408
3
08-05-2011 11:31 AM
Jitendrudulacaraju
Emerging Contributor
I get this error.
An unhandeled exception(..in Silverlight Application)
Code:4004
Category:ManagedRuntimeError
Message:System.Runtime.Serilization,SerializartionException:'html>
<head>

Xdomain policy everything is fine.
It is a MEF implmentation- all dependency injections, shell, etal are good.
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
I get this error.
An unhandeled exception(..in Silverlight Application)


Humm, difficult to reproduce
More infos about what you are doing would be appreciated:)
0 Kudos
Jitendrudulacaraju
Emerging Contributor
Its a big app, can you specify the files I should upload for your analysis?

Here is the error stack, its the problem the in web service I think, I am rectifying the web service and redeploying them;

'html>
<head>
<title>Runtime Error</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/ArcGIS/Services' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>Runtime Error</i> </h2...' is not a valid JSON primitive. This error can also occur when extraneous data is present after the JSON data. >>>>> May be it is the JASON deserialzation problem?




at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)
at ESRI.ArcGIS.Client.Layer.Initialize()
at ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer.<>n__FabricatedMethod4()
at ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer.<>c__DisplayClass2.<MapServiceInfoInitFailed>b__0()


Humm, difficult to reproduce 
More infos about what you are doing would be appreciated:)
0 Kudos
RichardWatson
Deactivated User
I have noticed that when the ESRI server logic encounters some problems it incorrectly returns HTML instead of JSON.  It looks like this is happening to you.

Obviously, what you have to figure out is what the underlying server error is so that you can resolve it.

It would be good to see the full response, i.e. all the HTML, which the server returned.  Also, you will want to check the REST log, ArcGIS Server Manager log, and the NT event log.
0 Kudos