Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2005

Tip: Looking for answers? Try searching our database.

calling a different Dll from the managed code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gaurav Bhardwaj - 17 Oct 2005 18:51 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.