Implementing EncryptionProvider

Add-in Express™ Support Service
That's what is more important than anything else

Implementing EncryptionProvider
Trying to implement a COM Addin that extends EncryptionProvider 
João Almeida




Posts: 5
Joined: 2014-05-09
Has anyone tried, or know of it's possible, to implement the EncryptionProvider interface on an ADX Addin on Office 2013? I'm needing to add some additional security logic and using a custom EncryptionProviderthat seemed the perfect place to do so.

I tried to implement it on an existing addin but apparently it's never called. If so, can anyone give me some tips on how to get it working?
Posted 09 May, 2014 05:36:15 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello João,

This question is NOT specific to Add-in Express.

I suggest that you ask it on the Outlook for Developers forum at http://social.msdn.microsoft.com/Forums/en-US/home?forum=outlookdev.


Andrei Smolin
Add-in Express Team Leader
Posted 13 May, 2014 08:14:37 Top
João Almeida




Posts: 5
Joined: 2014-05-09
Sorry, let me rephrase it. What I'm wandering is that if there's something in ADX that might be in the way of my custom EncryptionProvider getting loaded by Office.
Posted 13 May, 2014 09:48:31 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello João,

We work on a sample project. It's difficult since there's no example and documentation is less then minimal. As soon as we have any result, I'll let you know.


Andrei Smolin
Add-in Express Team Leader
Posted 15 May, 2014 03:35:28 Top
João Almeida




Posts: 5
Joined: 2014-05-09
Thanks!! I'm indeed having trouble with documentation so troubleshooting is very hard.
Posted 20 May, 2014 05:48:47 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello João,

I've just sent you an email with download links for the sample project and fixed DLLs that you need to replace in your project.


Andrei Smolin
Add-in Express Team Leader
Posted 19 Jun, 2014 10:47:04 Top
João Almeida




Posts: 5
Joined: 2014-05-09
Sorry for the delay, I was on vacation and only returned today to the office. Thanks checking that issues and the sample!

I tried to run your sample it and I'm having an OutOfMemoryException while setting the EncryptionProvider property (in both of the scenarios) but I think that's not an issue of ADX.

Are you planning to merge this fix on an official release?
Posted 24 Jun, 2014 11:21:04 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello João,

the fix will be included into the next public build. Regarding the OutOfMemoryException, please let me know if you manage to fix the problem. If this problem is induced by the code of Add-in Express, we will need to fix the issue.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Jun, 2014 08:22:30 Top
João Almeida




Posts: 5
Joined: 2014-05-09
Thanks! I will. I haven't been working on that part of the project lately, so that's why I haven't really spent a significant amount of time trying to troubleshoot it, but every time I set the EncryptionProvider it crashes and I have no idea if it's related to Add-inn Express.

When I get back to that I'll give you an update.
Posted 30 Jun, 2014 09:54:56 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello João,

Note that implementing Office.EncryptionProvider in a separate class produces "Insufficient memory to continue the execution of the program". So, please make sure that you implement Office.EncryptionProvider in the add-in module and that you set the the ProgId of the add-in module to the Document.EncryptionProvider property.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Jul, 2014 03:14:45 Top