Select to view content in your preferred language

ArcMap 9.3 and visual Studio 2010

2552
3
04-23-2010 03:46 AM
DIRKLORENZEN
New Contributor
Dear Community,
I just installed Visual Studio 2010 with framework 4 on my computer.
When trying to place an Esri Object on a form, I always get an error message that the activeX can´t be loaded.
Doe`s 9.3 not work with this version of Visual Studio or the Framework version?
Regards
Dirk
0 Kudos
3 Replies
StefanOffermann
Deactivated User
I think .NET 4.0 is not yet supported. Try to set .NET 3/3.5 as target framework for your Visual Studio project. Does this help? Regards, Stefan
0 Kudos
DIRKLORENZEN
New Contributor
Hi Stefan,
yes, it helps. Thank you
0 Kudos
NickClayton
Emerging Contributor
With some experimentation, I was able to get some use of .net 4.0 with 9.3.1.

I changed arcmap.exe.config to the following:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

which allows debugging in vs2010. I upgraded a project from 2008 to 2010 and everything works targeting 4.0 Framework (make sure it isn't targeting 4.0 Framework Client Profile). However, I haven't managed to get the ESRI assemblies to show up in the references dialog box or the items in the project templates...it's getting there though.
0 Kudos