Select to view content in your preferred language

using proxy.ashx in silverlight

3927
4
10-14-2011 12:38 AM
by Anonymous User
Not applicable
Original User: ecarson

Hi,

I'm trying to use the silverlight proxy.ashx and proxy.config provided by esri to use secure services (http://help.arcgis.com/en/webapi/silverlight/help/SLProxyPage.zip) with out any success.

The proxy.ashx and config are located in the root directery of the application folder and I can call the proxy page eg https://<servername>/app/proxy.ashx?ping for which I get the "Hello proxy" webpage return.

I can't call any of the services listed in the conifg file eg https://<servername>/arcgis/proxy.ashx?https://<servername>/arcgis/rest/services/ or http://www.bing.com/

I get HTTP 500 Internal Error.

When I reference the ProxyUrl="../proxy.ashx" for the service in silverlight I get the following errors from the initialisation failure (attached).

Any help is appreciated.

Regards,
Elliott
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
by Anonymous User
Not applicable
Original User: ecarson

Thanks for the reply Jennifer,

I have reviewed this web page before, this is the page that I accesssed the proxy files from. However it does not provide me with a solution to the problem that is occuring.

Any additional help would be greatly appreciated.

Regards,
Elliott
0 Kudos
JenniferNery
Esri Regular Contributor
The steps defined here are similar to what you need to do to set up your proxy pagehttp://help.arcgis.com/en/webapps/silverlightviewer/help/index.html#//01770000001s000000. You need to edit proxy.config to include your service url.
0 Kudos
by Anonymous User
Not applicable
Original User: ecarson

Thanks again for your reply Jennifer,

I've gone through the steps outlined in the second web link you've supplied. Unfortunately this also did not produce a favourable outcome.

For example I've generate a token placed it in the silverlight app to make sure it works. Then I've alter the silverlight app pointing to the new proxy page, put the token in the config file and referencing the service, but I get the error below. Even if the service is completely open I still receive the same error.

Webpage error details
Timestamp: Tue, 18 Oct 2011 02:03:12 UTC
Message: Unhandled Error in Silverlight Application Error 0x17E0.
Debugging resource strings are unavailable. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60531.0&File=mscorrc.dll&Key=0x17E0
at SSLMapImgExt.MainPage.Image_Layer_InitializationFailed(Object sender, EventArgs e)
at ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)
   at ESRI.ArcGIS.Client.Layer.Initialize()
at ESRI.ArcGIS.Client.ArcGISImageServiceLayer.MapServiceInfoInitFailed(Object sender, RestFaultEventArgs args)
at ESRI.ArcGIS.Client.Services.MapService.CheckForFault(DownloadStringCompletedEventArgs e, Exception& ex)
at ESRI.ArcGIS.Client.Services.MapService.wc_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
Line: 1
Char: 1
Code: 0
URI: https://<servername>/app/app1.html

Thanks for any additional help

Regards,
Elliott
0 Kudos