<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FeatureLayer ProxyUrl bug? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244788#M6342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is broken in a different way with the final release.&amp;nbsp; When no proxy is used, the request looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://HOSTNAME/ArcGIS/rest/services/MyMapService/MapServer"&gt;http://HOSTNAME/ArcGIS/rest/services/MyMapService/MapServer&lt;/A&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;/5/query?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when a proxy is used, the request looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://HOSTNAME/ArcGIS/rest/services/MySecureMapService/MapServer"&gt;https://HOSTNAME/ArcGIS/rest/services/MySecureMapService/MapServer&lt;/A&gt;&lt;STRONG style="text-decoration: underline;"&gt;/5?&lt;/STRONG&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 20:33:11 GMT</pubDate>
    <dc:creator>JayOckers</dc:creator>
    <dc:date>2010-07-12T20:33:11Z</dc:date>
    <item>
      <title>FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244780#M6334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to use a FeatureLayer with a proxy, and I'm having some problems.&amp;nbsp; Currently, I'm using the 2.0 public beta API, and I think the issues I'm seeing might be related to a bug, or bugs, in the API code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I specify that a FeatureLayer should use a proxy, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:FeatureLayer ID="MyFeatureLayer" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://localhost/ArcGIS/rest/services/MyMapService/FeatureServer/0"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProxyUrl="http://localhost/MySLApp/proxy.ashx"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mode="OnDemand" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoSave="False"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Color="Blue"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OnDemandCacheSize="500"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields="NAME,IDENTIFIER,DLVRY_ADD"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializationFailed="Layer_InitializationFailed"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Initialized="Layer_Initialized"&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will receive the following exception, that I can capture in the layer's InitializationFailed event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;System.Net.WebException: The remote server returned an error: NotFound. ---&amp;gt; 
 System.Net.WebException: The remote server returned an error: NotFound.
 at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
 at System.Net.Browser.BrowserHttpWebRequest.&amp;lt;&amp;gt;c__DisplayClass5.&amp;lt;EndGetResponse&amp;gt;b__4(Object sendState)
 at System.Net.Browser.AsyncHelper.&amp;lt;&amp;gt;c__DisplayClass2.&amp;lt;BeginOnUI&amp;gt;b__0(Object sendState)
 --- End of inner exception stack trace ---
 at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
 at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
 at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
 at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I spent a little time poking around with Firebug, and found out the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Things like tiled layers request the proxy page at &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;http://localhost/MySLApp/proxy.ashx?&amp;lt;theUrlItWants&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; The FeatureLayer, however, requests the proxy page at &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;http://localhost/MySLApp/proxy.ashx&amp;lt;theUrlItWants&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; during initialization - the key difference being the missing "?".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Post-initialization, the FeatureLayer goes back to requesting the proxy page at &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;http://localhost/MySLApp/proxy.ashx?&amp;lt;theUrlItWants&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;&amp;nbsp; The "?" is there where it should be - this time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) The FeatureLayer, unlike other map services, won't let me use a relative path to the proxy page.&amp;nbsp; If I try using a relative path (say, "../proxy.ashx") I receive an exception claiming the URI kind can't be determined.&amp;nbsp; I'm forced to specify an absolute path, along with the protocol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It could very well be the case that this is resolved in the 2.0 RC API - but the download link appears broken, so I can't find out. As it stands right now, however, I can't think of any way to make this work.&amp;nbsp; I could do something like use a proxy URL of &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;http://localhost/MySLApp/proxy.ashx?&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; (adding the "?" to the end) - but that makes any of the requests that come after layer initialization bomb.&amp;nbsp; (Which is what led me to believe that it's probably just a bug in the FeatureLayer's initialization - or something that occurs internally near the time of initialization, anyways.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone from ESRI have any information that could help in this situation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brooks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jun 2010 19:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244780#M6334</guid>
      <dc:creator>BrooksShannon</dc:creator>
      <dc:date>2010-06-25T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244781#M6335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm getting the same problems with the 2.0RC, so it looks like this hasn't been resolved yet..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 03:09:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244781#M6335</guid>
      <dc:creator>DavidAllen-Williams</dc:creator>
      <dc:date>2010-06-28T03:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244782#M6336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm getting the same problems with the 2.0RC, so it looks like this hasn't been resolved yet..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for letting me know.&amp;nbsp; Does anyone from ESRI know if this will be addressed at the 2.0 release?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 14:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244782#M6336</guid>
      <dc:creator>BrooksShannon</dc:creator>
      <dc:date>2010-06-28T14:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244783#M6337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. This will be addressed in final&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:43:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244783#M6337</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-06-28T23:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244784#M6338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks. This will be addressed in final&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&amp;nbsp; I appreciate you letting me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 14:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244784#M6338</guid>
      <dc:creator>BrooksShannon</dc:creator>
      <dc:date>2010-06-29T14:28:17Z</dc:date>
    </item>
    <item>
      <title>FeatureLayer Url bug - can not use relative path</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244785#M6339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Related to this issue, the 2.0RC also does not let you use a relative url for a feature layer - for example all the following fail with &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]System.UriFormatException: Invalid URI: The format of the URI could not be determined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:FeatureLayer Url="../mapit/dbo.MyFeature" ... /&amp;gt;
&amp;lt;esri:FeatureLayer Url="~/mapit/dbo.MyFeature" ... /&amp;gt;
&amp;lt;esri:FeatureLayer Url="/mapit/dbo.MyFeature" ... /&amp;gt;
&amp;lt;esri:FeatureLayer Url="mapit/dbo.MyFeature" ... /&amp;gt;&lt;/PRE&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully will be fixed in final too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244785#M6339</guid>
      <dc:creator>DavidAllen-Williams</dc:creator>
      <dc:date>2021-12-11T12:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244786#M6340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All layer types requires an absolute URL to the service endpoint.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 14:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244786#M6340</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-07-05T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244787#M6341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any word on when final release will drop?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 18:38:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244787#M6341</guid>
      <dc:creator>JayOckers</dc:creator>
      <dc:date>2010-07-08T18:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244788#M6342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is broken in a different way with the final release.&amp;nbsp; When no proxy is used, the request looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://HOSTNAME/ArcGIS/rest/services/MyMapService/MapServer"&gt;http://HOSTNAME/ArcGIS/rest/services/MyMapService/MapServer&lt;/A&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;/5/query?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when a proxy is used, the request looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://HOSTNAME/ArcGIS/rest/services/MySecureMapService/MapServer"&gt;https://HOSTNAME/ArcGIS/rest/services/MySecureMapService/MapServer&lt;/A&gt;&lt;STRONG style="text-decoration: underline;"&gt;/5?&lt;/STRONG&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 20:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244788#M6342</guid>
      <dc:creator>JayOckers</dc:creator>
      <dc:date>2010-07-12T20:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244789#M6343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;During initialization a FeatureLayer will send two requests.&amp;nbsp; One for metadata and another to query and return features.&amp;nbsp;&amp;nbsp; If using a proxy and defining the ProxyUrl property, both requests will be redirected through the proxy.&amp;nbsp;&amp;nbsp; There are two issues I discovered with the proxy page download included with the SDK: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The proxy.config file is not found when located outside the root folder.&amp;nbsp; To fix, adjust the following method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static string GetFilename(HttpContext context)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return context.Server.MapPath("proxy.config");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If not token secured, the proxy always checks for Windows\HTTP authentication, which results in a duplication of requests. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both items have been fixed in the SDK download from this page: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/help?Secure_services.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/help?Secure_services.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 22:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244789#M6343</guid>
      <dc:creator>RexHansen</dc:creator>
      <dc:date>2010-07-12T22:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244790#M6344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;During initialization a FeatureLayer will send two requests.&amp;nbsp; One for metadata and another to query and return features.&amp;nbsp;&amp;nbsp; If using a proxy and defining the ProxyUrl property, both requests will be redirected through the proxy. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue I found is that the second request (the query) isn't formatted correctly when using a ProxyUrl.&amp;nbsp; It's missing the word query and only returns metadata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workaround for this was to modify the proxy to detect this type of bad request and inject the proper syntax.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We added this right after the token is appended to the localUri:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Regex regex = new Regex(@"MapServer/\d+(\?)returnGeometry", RegexOptions.Compiled);
if (regex.IsMatch(localUri))
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localUri = regex.Replace(localUri, (m) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string newVal = m.Groups[0].Value.Replace("?", "/query?");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return newVal;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:12:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244790#M6344</guid>
      <dc:creator>JayOckers</dc:creator>
      <dc:date>2021-12-11T12:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer ProxyUrl bug?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244791#M6345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a similar problem using the identify task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how the query should be formed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;MapServer/identify?&lt;/STRONG&gt;&lt;SPAN&gt;geometryType=esriGeometryPoint&amp;amp;geometry={"x":959569.778050866,"y":3225324.48586893,"spatialReference":{"wkid":26715}}&amp;amp;returnGeometry=true&amp;amp;imageDisplay=1226,798,96&amp;amp;layers=visible&amp;amp;tolerance=2&amp;amp;mapExtent=954964.111157632,3221058.95804765,966234.665271614,3228394.93046442&amp;amp;f=json&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this is how it is being formed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;MapServer?&lt;/STRONG&gt;&lt;SPAN&gt;geometryType=esriGeometryPoint&amp;amp;geometry={"x":959569.778050866,"y":3225324.48586893,"spatialReference":{"wkid":26715}}&amp;amp;returnGeometry=true&amp;amp;imageDisplay=1226,798,96&amp;amp;layers=visible&amp;amp;tolerance=2&amp;amp;mapExtent=954964.111157632,3221058.95804765,966234.665271614,3228394.93046442&amp;amp;f=json&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 18:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-proxyurl-bug/m-p/244791#M6345</guid>
      <dc:creator>JayOckers</dc:creator>
      <dc:date>2010-07-13T18:39:50Z</dc:date>
    </item>
  </channel>
</rss>

