Select to view content in your preferred language

ArcGIS Viewer for Silverlight...using sde service to Build Basemap & Layers

1110
3
07-27-2011 01:43 PM
MichaelMorin
New Contributor
Hello all,
I am new to Silverlight so bear with me.  I am trying to build an .mxd in ArcMap, and publish in ArcServer 10.  At that point I want to use the ArcViewer for Silverlight to touch the sde service in an effort to build a new basemap and add layers within the Silverlight viewer from the sde layers represented in the 'ArcServer Service'.  I list the server in browse as D422453603 and get an error that that there is NO service running on this server. (Note...since this is dev server IIS, the ArcServer service and ArcViewer for Silverlight are all on the same machine...eg. D422453603).

My questions are 1) How can I do that?...2) Do I need to populate the C:\Inetpub\wwwroot directory with a clientacesspolicy.xml file & if I do?...do I add D422453603 to this file...and where? 3) or do I need to go through the Proxy setup within the Viewer?
0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor

I list the server in browse as D422453603 and get an error that that there is NO service running on this server.


You must give the REST services end point Url, something like http://D422453603/ArcGIS/rest/services.
If not working in the viewer, try the Url directly in your browser, you should get the list of services.
If still not working it's an issue with your server.


2) Do I need to populate the C:\Inetpub\wwwroot directory with a clientacesspolicy.xml file & if I do?...do I add D422453603 to this file...and where?

You don't need that as long as your application server is the same one as your arcgis server, but you may need it in your future production environment.

3) or do I need to go through the Proxy setup within the Viewer?

It's an alternative if you can't add the clientaccesspolicy to the ArcGIS server
(for example with external servers)
0 Kudos
MichaelMorin
New Contributor
You must give the REST services end point Url, something like http://D422453603/ArcGIS/rest/services.
If not working in the viewer, try the Url directly in your browser, you should get the list of services.
If still not working it's an issue with your server.


You don't need that as long as your application server is the same one as your arcgis server, but you may need it in your future production environment.


It's an alternative if you can't add the clientaccesspolicy to the ArcGIS server
(for example with external servers)


Thank you for the response...success...I do not need the clientaccesspolicy.xml yet...but when I do what lines in that file need editing and how might that look?

Also, how would I do I add a Basemap from an existing sde service?

Michael Morin
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Michael,

...I do not need the clientaccesspolicy.xml yet...but when I do what lines in that file need editing and how might that look?


Regarding using the clientaccesspolicy.xml file, please review this help topic:

FAQs - Problem: I cannot load data from an external data source outside my application's domain

Also, how would I do I add a Basemap from an existing sde service?


To enable custom basemaps in the Silverlight Viewer application builder, please review this help topic:

Configuring basemaps
(a login is required to access content)

In future, please post comments and questions related to the Silverlight Viewer beta 2 on the Esri Beta Community, as this is where the Dev team is monitoring user feedback.

Hope this helps,
0 Kudos