That assembly does not allow partially trusted callers. - InfoPath Dev
in

InfoPath Dev

Qdabra® Training

Use our Google Custom Search for best site search results.

That assembly does not allow partially trusted callers.

Last post 02-14-2008 12:27 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-01-2008 12:08 AM

    That assembly does not allow partially trusted callers.

    Hello,

    I'm using Microsoft.Web.Services2; for a c# (2003) infopath (2003) project, and when i'm calling the methods from webservices2 i get the

    System.Security.SecurityException That assembly does not allow partially trusted callers. exception

     

    I added [assembly: AllowPartiallyTrustedCallers] to AssemblyInfos.cs, also added

            [PermissionSet(SecurityAction.Assert, Name="FullTrust")]
            [PermissionSet(SecurityAction.Demand, Name="FullTrust")]

     

    before the method that uses the webservices methods, but still i got the exception.

     

    Anyone knows the solution of this problem?

     Thanks
     

  • 02-14-2008 12:27 PM In reply to

    Re: That assembly does not allow partially trusted callers.

    If the calls you are making requires your form to be full trust, then you need to either make your form full trust, or you need to find another way to do what you are trying to do. That's really your only two choices. Well, there's a third, which is to not do it at all, but I'm assuming that is not really a choice for you.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.