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 / September 2004

Tip: Looking for answers? Try searching our database.

Error when installing a fully trusted form on another computer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yann Gibaja - 23 Sep 2004 20:53 GMT
Dear all,

I created an Infopath template(SP1 with Visual Studio 2003, code written in
C#) to be used as a data entry form to pass data to Excel. The C# code
creates a reference to Microsoft Excel 2003 and calls an Excel macro.
Therefore the form needs to be fully trusted.

I created an installation package using the following command:

regform /U urn:mycompany.com:myform /T Yes /MSI myform.xsn

I installed the template on my computer using the .msi file created by the
command above. It works fine.
When I installed the template on another computer, and try to create a form
with it, I get the following error:

"Infopath cannot create a new, blank form.
Infopath cannot open the form. To fix this problem, contact your system
administrator.

Form template:
file:///C:\Program%20Files\InfoPath%20Form%20Templates\PolicyIllustration.xsn
InfoPath cannot open the selected form because of an error in the form's
code.
Exception has been thrown by the target of an invocation."

I made sure that the same latest .NET Framework version is installed on both
computers.

Any help would be greatly appreciated,

Thank you,
Yann
Greg Collins [MVP] - 24 Sep 2004 02:21 GMT
I know this sounds like a really dumb question, but have you verified the latest .NET Framework is on the target PC?

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

Dear all,

I created an Infopath template(SP1 with Visual Studio 2003, code written in
C#) to be used as a data entry form to pass data to Excel. The C# code
creates a reference to Microsoft Excel 2003 and calls an Excel macro.
Therefore the form needs to be fully trusted.

I created an installation package using the following command:

regform /U urn:mycompany.com:myform /T Yes /MSI myform.xsn

I installed the template on my computer using the .msi file created by the
command above. It works fine.
When I installed the template on another computer, and try to create a form
with it, I get the following error:

"Infopath cannot create a new, blank form.
Infopath cannot open the form. To fix this problem, contact your system
administrator.

Form template:
file:///C:\Program%20Files\InfoPath%20Form%20Templates\PolicyIllustration.xsn
InfoPath cannot open the selected form because of an error in the form's
code.
Exception has been thrown by the target of an invocation."

I made sure that the same latest .NET Framework version is installed on both
computers.

Any help would be greatly appreciated,

Thank you,
Yann
 
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.