Select to view content in your preferred language

Dynamic Map in Silverlight Is Appearing Blank

4000
10
Jump to solution
03-10-2011 11:26 AM
by Anonymous User
Not applicable
Original User: nelsl

My map through my simplified Silverlight app is appearing blank.  I have tried in IE 8 and firefox 3.6.15.  I have tried using Fiddler and found:
that my clientaccesspolicy.xml is being accessed under code 304
A successful 200 call to /ArcGIS/rest/services/[service name]/MapServer?f=json
Then the error 500 http://[server name]/ArcGIS/rest/services/[service name]/MapServer/export?bbox=-469791.006899998%2c-...

My log located at: C:\Program Files\ArcGIS\Server10.0\server\user\log
reports:
<Msg time='2011-03-10T13:57:12' type='WARNING' code='2008' target='[service name].MapServer' user='?' thread='3628' elapsed='59.99900'>A request to obtain a free ServerContext has failed because the Wait Timeout Interval has elapsed.</Msg>
<Msg time='2011-03-10T13:59:38' type='WARNING' code='2007' target='[service name].MapServer' machine='[server name]' thread='2692' elapsed='605.16800'>The context has been automatically released because the Context Usage Timeout Interval has elapsed.</Msg>


My Service is listed under: http://[service name]/ArcGIS/rest/services

My code is:
            <esri:Map x:Name="MyMap" >
            <esri:ArcGISDynamicMapServiceLayer ID="MyLayer"
                                               
                Url="http://[server name]/ArcGIS/rest/services/[service name]/MapServer" InitializationFailed="ArcGISDynamicMapServiceLayer_InitializationFailed" 
                                               Visible="True"/>
        </esri:Map>

which loads a blank page:
Url="http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer" />

does load successfully.  The Initialization Failed Event does not fire.

I tried the analyze tool under the Map Service Publishing Toolbar and corrected all errors.
The service does show up correctly in ArcMap and the preview of the service in ArcGIS Server Manager.

Attached are my policies located under default: C:\Inetpub\wwwroot of the SOM/SOC machine.  My version of Visual Studio 2010 is running on a different box and is using IIS 6.
0 Kudos
10 Replies
dotMorten_esri
Esri Notable Contributor
Since you get a 500 server error when using the ExportMap feature using the Silverlight API, but don't get it when using the JavaScript viewer, could you try and look in Fiddler and see on what parameters those two different requests differ?
Server errors are happening on the server (duh:-) - it's not really an issue in the Silverlight API (however Silverlight might expose a bug in server that the javascript API doesn't).
0 Kudos