ArcMap crashing Caused By Add-In

515
1
05-12-2017 04:39 AM
ShaningYu
Frequent Contributor

I developed an Add-In in VS2012 on my development environment.  But when I deployed on other CPU's, the Add-In causes ArcMap crashing.  The exception received shows that

System.NullReferenceException: Object reference not set to an instance of an object at ... Line 76

Line 76:      m_mxDoc = (IMxDocument)m_app.Document;   

                   // where the IApplication m_app is null;

What's the possible solution for solving this problem?  Thanks.

0 Kudos
1 Reply
ShaningYu
Frequent Contributor

Problem solved by re-set FW=4.0 from 4.5 (also including the runtime verion).  Thanks.

0 Kudos