Dear all,
I created an Infopath template (SP1 with Visual Studio, code written in C#).
The Infopath template is used as a data entry form. This template
communicates with Microsoft Excel 2003 to pass some data to it.
Therefore, the form needs to be fully trusted.
I create an installation package for the template with the following
command:
regform /U urn:mycompany.com:mytemplate /T Yes /MSI MyTemplate.xsn
When I install the template with the .msi file on the same machine, it works
great.
When I install the template on another machine, 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\MyTemplate.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 latest version of the .NET Framework was installed on
both machines.
Any help would be greatly appreciated.
Yann
David Conorozzo - 23 Sep 2004 23:07 GMT
This probably will not help you but, I noticed a big security change after I
installed SP1. You said, "This template communicates with Microsoft Excel
2003 to pass some data to it. Therefore, the form needs to be fully trusted."
Did you try signing the template before distributing it. I don't really
know much about InfoPath, but I wan into that security problem when I tried
to change the location of a template, after SP1.
> Dear all,
>
[quoted text clipped - 28 lines]
>
> Yann