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 / March 2006

Tip: Looking for answers? Try searching our database.

Install the form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 27 Mar 2006 03:13 GMT
Hi

I'm in the process of making an InfoPath form, using Visual Studio 2005
for the coding. I've added a button which is supposed to send email.
However, when I click it, I get the error "That assembly does not allow
partially trusted callers." I've had a look around and have been told
to set the form's security level to Full Trust. However, doing that
gives me this message:

InfoPath cannot grant the Full Trust security level when previewing
unregistered forms. This form will be previewed using the Domain
security level. Any object model calls that are permitted only in fully
trusted forms will fail.
To test the form at the Full Trust security level, close the previewed
form and then install it on your computer.

Install it on your computer? It's already on my computer! I'm lost,
what should I do?

Thanks
Chris
Chris - 29 Mar 2006 05:29 GMT
Solved. I executed the following in cscript (Windows Script Host):

oApp = WScript.CreateObject("InfoPath.ExternalApplication");
strAbsolutePath = "D:\\Path\\To\\manifest.xsf";
oApp.RegisterSolution(strAbsolutePath,"overwrite");

Hopefully this helps someone :)
Chris
 
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.