Tuesday, March 13, 2012

System.Security.SecurityException: That assembly does not allowpartially trusted callers.

I have created an ActiveX control that does word automation. Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.

I am using .net 2. I have a key and use the regasm tool after it the
dll is compiled

I am really lost on how to make this work any help will be appreciated

Johnyou prolly have to add this to your code:

[assembly: AllowPartiallyTrustedCallers]

--
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:

Originally Posted by

I have created an ActiveX control that does word automation. Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.
>
I am using .net 2. I have a key and use the regasm tool after it the
dll is compiled
>
I am really lost on how to make this work any help will be appreciated
>
John
>

0 comments:

Post a Comment