<?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: defaultProxy settings in an Add-In in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793948#M1692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/12050415/set-default-proxy-programmatically-instead-of-using-app-config"&gt;https://stackoverflow.com/questions/12050415/set-default-proxy-programmatically-instead-of-using-app-config&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2017 18:16:43 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2017-11-29T18:16:43Z</dc:date>
    <item>
      <title>defaultProxy settings in an Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793947#M1691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I would like to implement in an "ArcGIS Pro Module Add-in" some request to rest-api which is different endpoint then ESRI-Servers.&lt;BR /&gt;This works well if the ArcGIS Pro with the addin is connected to internet direct. But if it is behind a Proxy it does not work with the Exception:&lt;BR /&gt;&lt;STRONG&gt;"System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a separate .Net C# WPF Application I set the app.config with following parameters:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;&amp;lt;system.net&amp;gt;&lt;BR /&gt;&amp;lt;defaultProxy enabled="true" useDefaultCredentials="true"/&amp;gt;&lt;BR /&gt;&amp;lt;/system.net&amp;gt;&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;--&amp;gt; This works!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same in the "ArcGIS Pro Module Add-in" with a file in the project "app.config". After compilation, the content is inside a file beside the dll with the name "demo.dll.config" and the expected content:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;&amp;lt;system.net&amp;gt;&lt;BR /&gt;&amp;lt;defaultProxy enabled="true" useDefaultCredentials="true"/&amp;gt;&lt;BR /&gt;&amp;lt;/system.net&amp;gt;&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How can I configure the DefaultProxy I the Add-In for Rest-Api-Calls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 11:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793947#M1691</guid>
      <dc:creator>GISMountains</dc:creator>
      <dc:date>2017-11-29T11:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: defaultProxy settings in an Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793948#M1692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/12050415/set-default-proxy-programmatically-instead-of-using-app-config"&gt;https://stackoverflow.com/questions/12050415/set-default-proxy-programmatically-instead-of-using-app-config&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 18:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793948#M1692</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2017-11-29T18:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: defaultProxy settings in an Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793949#M1693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much charles!&lt;/P&gt;&lt;P&gt;It workes with the following line&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;System.Net.WebRequest.DefaultWebProxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2017 06:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/defaultproxy-settings-in-an-add-in/m-p/793949#M1693</guid>
      <dc:creator>GISMountains</dc:creator>
      <dc:date>2017-11-30T06:23:37Z</dc:date>
    </item>
  </channel>
</rss>

