<?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 .NET Framework version in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1380#M102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI delivers a sample ASP.NET provider for security here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\Server\help\samples\asp.net\in_memory_provider&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I built this, installed the resulting DLL in the GAC, and then tested the result using the JSON in the Readme.txt file using this URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:6080/arcgis/admin/security/config/testIdentityStore"&gt;http://localhost:6080/arcgis/admin/security/config/testIdentityStore&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine.&amp;nbsp; No problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then modified the project to use the .NET 4.0 framework and repeated the above steps.&amp;nbsp; It does not work.&amp;nbsp; I can run fuslogvw and see that it fails to load the assembly.&amp;nbsp; The failure occurs in conjunction with ArcSOC.exe.&amp;nbsp; Is there a way to configure this, similar to ArcMap, with a configuration file which tells it to use the 4.0 framework?&amp;nbsp; I tried to copy the pattern from ArcMap but did not have success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, does anyone know of any issues with using the 4.0 framework in conjunction with ArcGIS Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a followup; other than losing XP support, does anyone know why we cannot use the 4.5 framework for both desktop and server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2012 19:08:53 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2012-11-06T19:08:53Z</dc:date>
    <item>
      <title>.NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1380#M102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ESRI delivers a sample ASP.NET provider for security here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\Server\help\samples\asp.net\in_memory_provider&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I built this, installed the resulting DLL in the GAC, and then tested the result using the JSON in the Readme.txt file using this URL:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:6080/arcgis/admin/security/config/testIdentityStore"&gt;http://localhost:6080/arcgis/admin/security/config/testIdentityStore&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine.&amp;nbsp; No problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then modified the project to use the .NET 4.0 framework and repeated the above steps.&amp;nbsp; It does not work.&amp;nbsp; I can run fuslogvw and see that it fails to load the assembly.&amp;nbsp; The failure occurs in conjunction with ArcSOC.exe.&amp;nbsp; Is there a way to configure this, similar to ArcMap, with a configuration file which tells it to use the 4.0 framework?&amp;nbsp; I tried to copy the pattern from ArcMap but did not have success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, does anyone know of any issues with using the 4.0 framework in conjunction with ArcGIS Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a followup; other than losing XP support, does anyone know why we cannot use the 4.5 framework for both desktop and server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 19:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1380#M102</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-06T19:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1381#M103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard, I have tried a fast test and I haven't problems compile in net 4, update in &lt;/SPAN&gt;&lt;A href="http://localhost:6080/arcgis/admin/s...tIdentityStore"&gt;http://localhost:6080/arcgis/admin/s...tIdentityStore&lt;/A&gt;&lt;SPAN&gt; and add users/roles and assign roles to services. What are steps so I can simulate if I have same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 18:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1381#M103</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-11-07T18:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1382#M104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did testIdentityStore work for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did was to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Modify the sample to build it using my key&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Modify the sample to use the 4.0 framework&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Built the sample&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Added the sample to the GAC (it should go in C:\Windows\Microsoft.NET\assembly\GAC_MSIL)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use the REST admin testIdentityStore pasting in the JSON from ReadMe.txt after changing the public key&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that when I did the same thing using the 3.5 framework it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure that you remove the 3.5 assembly from the GAC before testing the 4.0 assembly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 18:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1382#M104</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-07T18:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1383#M105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excuse me I haven't cut in assembly before re-add in new gac assembly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However I have inserted in new gac C:\Windows\Microsoft.NET\assembly\GAC_MSIL and when I do the test I have this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="font-style: italic;"&gt;Could not create an instance of class 'CustomProvider.InMemoryMembershipProvider,CustomProvider,Version=1.0.0.0,Culture=Neutral,PublicKeyToken=mypublictoken'. Type not found in default assembly.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI thinks do a soe target .net 2. By default, the runtime attempts to bind with the exact version of an assembly that the application was built with. This default behavior can be overridden by configuration file setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see soe C:\Program Files\ArcGIS\Server\framework\lib\ext\AGSMembershidProviderAddin.soe (it's a zip file)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 06:11:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1383#M105</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-11-08T06:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1384#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip on AGSMembershipProviderAddin.soe because I certainly did not know that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created the file C:\Program Files\ArcGIS\Server\bin\ArcSOC.exe.config with the following content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;startup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v4.0.30319"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.50727"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/startup&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It still won't load my .NET 4.0 ASP.NET provider.&amp;nbsp; I can see the failure in fuslogvw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering if you got this to work?&amp;nbsp; I really appreciate your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 09:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1384#M106</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-08T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1385#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that also if you only add supportedRuntime&amp;nbsp; to 4.0 the add-in esri is compiled in 2.0 and it invokes a dll 4.0 in context 2.0. Add supportRuntime 4.0 is ok for config arcsoc.exe but also it's need that esri recompile his soe addin AGSMembershidProviderAddin for manage 4.0 (it invokes with Activator.CreateInstance your dll).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:13:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1385#M107</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-11-08T11:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: .NET Framework version</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1386#M108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is now clear.&amp;nbsp; The botttom line here is ESRI does not support custom ASP.NET security providers which are based on the .NET 4.0 framework.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workarounds include:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Editing the ESRI code, recompiling it for the 4.0 framework, and then redistributing that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Develop a JAVA extension which implements the required interfaces and have it delegate those to .NET via COM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4.0 framework has already been replaced with 4.5 and ESRI has yet to fully support 4.0.&amp;nbsp; I find that disappointing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to Domenico for his assistance in understanding this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 20:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/net-framework-version/m-p/1386#M108</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-11-08T20:05:22Z</dc:date>
    </item>
  </channel>
</rss>

