Select to view content in your preferred language

ArcMap.Application is null when Addin is loaded

4041
10
Jump to solution
06-19-2014 12:21 AM
SiqinWANG
Deactivated User
Hello,

I've a problem in the installation of an Add-in that we've developed for our client. The Add-in does not work correctly because the ArcMap.Application value is null when loaded.  The type of this Add-in is an Extension.

The Add-In is developed with ArcObjects in the version of 10.2.1. We don't have any problem when it is tested on our environment with an ArcMap 10.2.1. Our client has a version of 10.2.0.

Does any one has an idea of this error ?

Thank you very much.

Siqin
0 Kudos
10 Replies
SiqinWANG
Deactivated User
The target platform is certainly good advice. and make sure the machine has the 4.5 .Net Framework.

Also, in your config.esriaddinx file have you tried to change the target version?  Just a thought - not sure if that would affect the compatibility ability to  compile.

<Targets>
    <Target name="Desktop" version="10.2" />
  </Targets>
  <AddIn language="CLR4.5" library="Tools.dll" namespace="Tools">
    <ArcMap>


Have you been able to test the same add-in on a machine with the 10.2.0 version?

Thanks,
Sol


Sol,

thank you for your reply. It is the .Net version problem. Add-In compiled with 4.0 .Net works for the 10.2.0 version.

Siqin
0 Kudos