Problem with PublishURL and Trustedforms

T

Tadhg

Hi

I have c# code to create and automatically populate infopath forms based on
a fully trusted, digitally signed template solution.
I have followed the correct steps to get the form fully trusted i.e. removed
publishurl from the manifest.xsf within the VisualStudio solution. I then set
the template as fully trusted.

My problem is during debugging. This used to work fine for me before.
I register the form using a JS script that calls registersolution to
register the manifest.xsf at the project location e.g. "C:\\Documents and
Settings\\tadhg\\My Documents\\Visual Studio
Projects\\STD_ReleaseForms\\manifest.xsf"

The code works and publishes all the forms to the sharepoint location but
when I open the published form from the web (after debugging it) I get an
error saying "the following form template for the form cannot be found
"File:///"C:\Documents and Settings\v-tadhgc\Application
Data\Microsoft\InfoPath\Designer\[hexvalue]\manifest.xsf"

Also the debug version of the XSN is including a PublishURL to this
location: "C:\Documents and Settings\tadhg\My Documents\Visual Studio
Projects\STD_ReleaseForms\bin\Debug\STD_ReleaseForms.xsn" which is the
correct location. However I can't understand how the publishurl gets in there
when the manifest.xsf in my solution does not have one. I know there should
be no publishurl for Fully trusted, signed forms.
Can you help?

It should be looking for the manifest file at the first location and not at
this second location. I was not getting this error before so would anyone
know how and why it would now be looking in this location.

thanks
Tadhg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top