Select to view content in your preferred language

ArcGIS Server Security Enabled and Silverlight Web application security

564
2
05-28-2010 08:43 AM
DarinaTchountcheva
Frequent Contributor
Hello guys,

I have enabled Security on our development server using Windows users and groups. I followed the Walkthrough step by step.

Accessing the services through the REST services directory and ArcCatalog works as expected.
But I do have troubles accessing the services through the Silverlight applications.

I get this message in Firebug anytime i try to query a secured map service through a silverlight application:

{"error":{"code":400,"message":"","details":["Unauthorized access"]}}

I have tried pretty much every Directory Security and web.config combination I could think of on the website hosting the Silverlight application to resolve the problem, but nothing works.

I have currently disabled Annonimous Access on the Directory Security tab of the website, I am in the group allowed to see the Map Service, and have in the web.config:

[HTML]<authentication mode="Windows" />
    <identity impersonate="true"/>[/HTML]

How do I have to setup the website security to make this work?

Thank you!

Darina
0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor
Try calling WebRequest.RegisterPrefix("http://MyServer/ArcGIS/REST", WebRequestCreator.ClientHttp) when your app starts (before the map initializes).

If that doesn't help, see this blogpost: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/tags/security/default.aspx
0 Kudos
DarinaTchountcheva
Frequent Contributor
Thank you, Morten!

You are the bomb!

I had to use a proxy page, but it works!

Darina
0 Kudos