"Request Failed" Security Exception

T

Tom Purdom

Hi All,
I am developing a Outlook interop plugin which performs task
time allocation. However when i attempt to fire my custom event to
notify that an allocation has been generated the security exception
"Request Failed" is thrown. The events sole subscriber is the main
class of the interop plugin.

Anyone experienced this problem in the past? Or can you give me more
information about this type of security exception. I have read about
issues of "request failed" exceptions in the context of ASP web
developments but..... well. Any suggestions would be appreciated.
 
T

Tom Purdom

Problem sorted. When the event fired calling the subscribers function.
The subscribers Security Permissions were set as:

[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand,
Name="FullTrust")]

The constraint was set in a partial class within the outlook interop
generated code.

I decreased the Security restrictions to:

[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand,
Name="FullTrust")]

which has now sorted the problem.

Any comments on whether this corrective approach is good or bad are
welcome.
 

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