Hi,
I am trying to call a different .net dll (created by me) in my managed code
in InfoPath. It throws the following error at the line where I try to
instantiate the class defined in a separate Dll.
"InfoPath cannot open the selected form because of an error in the form's
code.
That assembly does not allow partially trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh,
SecurityAction action, Object demand, IPermission permThatFailed)
at InfoPathProject2.InfoPathProject2._Startup(Application app, XDocument
doc) "
The same dll is working fine everywhere accept in InfoPath code. Can anybody
please help me out ?
thanks,
Gaurav
Franck Dauché - 17 Oct 2005 19:10 GMT
Hi Gaurav,
Did you try to make your form Full Trust?
Regards,
Franck Dauché
> Hi,
>
[quoted text clipped - 17 lines]
> thanks,
> Gaurav
Gaurav Bhardwaj - 18 Oct 2005 14:59 GMT
thanks Franck,
It is working fine when the form is Full trust.
Regards,
Gaurav
> Hi Gaurav,
>
[quoted text clipped - 25 lines]
> > thanks,
> > Gaurav
Franck Dauché - 18 Oct 2005 16:34 GMT
Glad I could help.
Good luck with your InfoPath developments.
Regards,
Franck Dauché
> thanks Franck,
>
[quoted text clipped - 37 lines]
> > > thanks,
> > > Gaurav