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 / August 2005

Tip: Looking for answers? Try searching our database.

Open form in asp.net - form is not from a trusted publisher

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roeland - 28 Jul 2005 23:36 GMT
Hello,

I have a form that I would like to open in an asp.net application.

I’m trying to open a form (by code) in asp.net, set some values in the xml
and save the form as “MyFileName.xml”. The form that I’m using is published
to a shared folder. When I execute the page I get the error: “InfoPath cannot
create a new, blank form. InfoPath cannot load this form. The signature on
this form is not from a trusted publisher.”

What must I do the open the form. Please Help!

Cheers,
Roeland

Application myApp = new Application();
XDocumentsCollection myXDocs = myApp.XDocuments;
XDocument myXDoc = myXDocs.NewFromSolution(@"c:\temp\forms\contacts.xsn");
myXDoc.SaveAs(@"c:\temp\forms\roeland.xml");
myXDocs.Close(0);
myApp.Quit(false);
Roeland - 30 Jul 2005 11:10 GMT
I have found the answer myself.

I had added a certificate to my InfoPath form. When I open the form
regularly every think worked fine as it should. But when I open the form from
an ASP.Net code behind page, I got an error saying that the publisher was not
trusted.

The solution is to add the certificate that I am using to the “Trusted Root
Certification Authorities” in the Certificates of the current user.

Cheers,
Roeland

> Hello,
>
[quoted text clipped - 17 lines]
> myXDocs.Close(0);
> myApp.Quit(false);
tercel79k - 31 Jul 2005 06:51 GMT
Hi roland,

My problem is similiar to you.
Can you tell me ?
I am able to open infopath form from my windows application.
But I want to pass my xml cocumnet to this opened form.

This means, I want to open infopath form with data from my window
application.
Can you please help me.

Thanks and Regards,
ChatanyA Agrawa

-
tercel79

Roeland - 31 Jul 2005 21:56 GMT
Chatany,

Do you want to see the form itself in your application or do you want to
have the data in your application.

If it is the last, you can read the xml using InfoPath or using
System.Xml.XmlDocument. And I would the suggest using the XmlDocument.

It this doesn't help please tell me a bit more.

Cheers,
Roeland

> Hi roland,
>
[quoted text clipped - 17 lines]
> View this thread: http://www.mcse.ms/message1760305.html
>  
tercel79k - 02 Aug 2005 07:00 GMT
Hi,
Roleand,
I already have xml and i need to pass this xml to existing infopat
template.
And I have to open infopath from my window application in a separat
window.
I have opened it.
But now I am getting this error.
"InfoPath cannot create a new, blank form.
The selected file is an update of a form on your computer. However, th
update has been blocked because the author of the file cannot b
verified.

If this file is a legitimate update, use the Fill Out a Form dialog bo
to remove the original form from your computer, and then open thi
file."

Please help me.
Can I know your mail ID.

Thnaks

> *Chatany,
>
[quoted text clipped - 33 lines]
> ------------------------------------------------------------------------
> > View this thread: http://www.mcse.ms/message1760305.html

-
tercel79

 
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.