SecurityException in OfficeCodeBehind class

C

Chuck Hartman

I have a simple C# Word Template Project that I created with the wizard. I
have added a dialog box to the project and wired a toolbar button to invoke
it. Everything is fine until I add a Web Browser component to the dialog
box. It now is gettng a SecurityException when constructing the dialog box
class and never enters the constructor. How can I resolve this issue?
Thanks.

Chuck Hartman
 
C

Chuck Hartman

I assumed that the interop assemblies were coming from the GAC, but they
were in my project bin directory. I resolved this by granting FullTrust to
those two Interop DLLs in my project directory in my Office Project Code
Group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top