What can we modify in VSTO Add-in code for DEP compliant addin? RRS feed

  • Question

  • I've a Outlook Addin, and it works fine on multiple PCs but it errors on in one of custom pc with error specifying that DEP prevented loading of Outlook due to my addin. Now since I'm unable to debug and validate it at my end I'm all stuck at one end. 

    Can anyone guide me how and what can be changed a best practice of code that will pass DEP check ... ?

    Thursday, February 21, 2013 2:32 PM

All replies

  • try to gether DEP settings from client and set the same on your computer. Do you call some external libraries or use P/Invoke?
    Thursday, February 21, 2013 2:39 PM
  • I've used ThreadPool.QueueUserWorkItem and Me.BeginInvoke methods quite a lot in my programming to load data and keep UI updated ... other than that no other Invoke methods been used ...
    Thursday, February 21, 2013 3:05 PM
  • pinvoke is something different - do you use or call any native code directly? (some libraries, etc.)
    Friday, February 22, 2013 5:11 AM
  • I've used some 3rd party libraries, but the associated controls are all added design time.
    Saturday, February 23, 2013 7:02 AM