Select to view content in your preferred language

Can???t use my map services in Silverlight application

2080
8
02-03-2011 05:42 AM
JoannaLaroussi
Emerging Contributor
I published a few simple map services. I can see them in preview tab in ArcCatalog window: GIS Servers �?? arcgis my server. I can also see them listed on the web page http://my server/arcgis/rest/services, but when I go to any of them and click on ArcGIS JavaScript the preview is empty. When I copy the map url http://my server/ArcGIS/rest/services/my map/MapServer and try to use in Visual Studio Silverlight application it again open only a white page. I tried also Expression Blend: when I navigate to the part, where I can browse for the servers I can see many layers under arcgis online server, but none under my server thus I can�??t use any of my map to build a web application. This is the first attempt to build a web application after installing ArcGIS 10 Server Workgroup. Any ideas what can be wrong?
0 Kudos
8 Replies
AliMirzabeigi
Emerging Contributor
If you are trying to open an ArcGIS Server service over a scheme different than your host application then you need to create a ClientAccessPolicy file on that service web server. Please read the following blog for more information:
http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/31/Using-services-across-schemes.aspx
0 Kudos
JoannaLaroussi
Emerging Contributor
Thank you for your answer. I read the reference article and I believe that this is not my case. I am not using any services across schemes; everything what I am using is http. Could you think about something else what may cause my problem?
0 Kudos
JenniferNery
Esri Regular Contributor
Are you able to view layer information using your web browser?

You might find this blog post useful too: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx
0 Kudos
JoannaLaroussi
Emerging Contributor
Are you able to view layer information using your web browser?

You might find this blog post useful too: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx


Thank you for the answer. I am not sure what you mean by �??view layer information using your web browser�?�. I can see my map services in ArcGIS Services Directory, but if I open any of them and try preview in ArcGIS JavaScript, the page is blank.
The same blank page appears, when I copy the map url http://my server/ArcGIS/rest/services/my map/MapServer and try to use in Visual Studio Silverlight application.
I have in ArcCatalog in Service Properties another url for this map service http://my server.domain/arcgis/services/my map/MapServer. When I try to past this url inside web browser I am receiving bellow messages. How I can fix it?

Server Error in '/ArcGIS/Services' Application.
________________________________________
No Content
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: No Content

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): No Content]
   ESRI.ArcGIS.WebServices.BaseServiceHandler.ReadStringRequest(HttpRequest request) +105
   ESRI.ArcGIS.WebServices.BaseServiceHandler.QueryStringService(HttpContext ctx) +29
   ESRI.ArcGIS.WebServices.BaseServiceHandler.QueryService(HttpContext ctx) +63
   ESRI.ArcGIS.WebServices.ServiceHandler.QueryService(HttpContext ctx) +239

________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
0 Kudos
JenniferNery
Esri Regular Contributor
I mean, if you copy-paste the service URL to Internet Explorer/FireFox/Google Chrome, do you see anything on this web page? The reason I ask is to narrow-down the cause of blank page by not using SL app and simply viewing information on the layer through your web browser. Please try to use Fiddler when you do this too.
0 Kudos
JoannaLaroussi
Emerging Contributor
I mean, if you copy-paste the service URL to Internet Explorer/FireFox/Google Chrome, do you see anything on this web page? The reason I ask is to narrow-down the cause of blank page by not using SL app and simply viewing information on the layer through your web browser. Please try to use Fiddler when you do this too.


I just installed Fiddler and now I need to find out how to use it. Anyway, when I am pasting the service URL into Internet Explorer I am seeing only the error described in my previous message.
0 Kudos
JenniferNery
Esri Regular Contributor
Then there must be something wrong with the map service. You can go through this help doc to check if you have everything set up correctly: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//00930000004r...
0 Kudos
JoannaLaroussi
Emerging Contributor
I decided to call ESRI support and it turned out that was Internet Explorer 7 fault. After uninstalling Internet Explorer Enhanced Security all problems disappeared.
0 Kudos