Skip to main content
We have an InfoPath form with Code Behind which is published to a form library (Forms) as a default content type. Now we have created a Sharepoint Integrated Workflow in Visual Studio with Default Asp.Net forms which starts on creation of an item in  "Forms" library . Approval tasks are created successfully but Item URL given on Task Form cannot open xml document and gives error like InfoPath cannot open the form becuase form is trying to access files from your machine or it is not trusted so Install the form or issue Certificate for form.

I think you need to make the IP form fully trusted. To do this go to tools > Form Options > Security and trusts. Set a full trust and generate a certificate. Re-publish the form to the library.


HTH


Vernon


Full trust is already done..but do we really need a certificate for it?


I’m not 100% sure but it can be needed due to the code in the form. As a test you can just generate a certificate from within InfoPath. Also I guess that there are a couple of data connections in the template. Ensure that in Central Admin > From Services that it is set to allow cross domain data connections also in IE under the security tab > custom there is a miscellaneous field and under it Access data sources across domains, ensure that this is enabled.


HTH


Vernon


Everything is set and form gets opened on the machines without InfoPath Installed  . Infact the problem is that it tries to open form in InfoPath so the concern is that how can I set Browser for DefaultOpen although it is already set for the Form Library


Ahhh I see so it actually tries to open the xml file in InfoPath. Try changing the file extension associations in folder options. I think the default program to open XML is set to InfoPath or something strange is going on. Change the XML association to open with IE and see what happens.


HTH


Vernon


it does not work . I mean it shows same behaviour, tries to open with IP


This is strange, waht does the full URL look like, can you post it so I can have a look at it?


Vernon


below is the url shown on Task form


http://demoprocesses:7009/Leave/Leave%20Applications/Kanwal-Casual-2010-12-01T10_15_43.xml


Below is the url on error screen while it tries to open it with InfoPath "InfoPath Cannot Open the following file http://demoprocesses:7009/Leave/Leave Applications/Kanwal-Casual-2010-12-01T10_15_43.xml?Openin=PreferClient&NoRedirect-true&XmlLocation=Leave/Leave Applications/Kanwal-Casual-2010-12-01T10_15_43.xml


I think it might have to do with the URL itself. The openin =PreferClient&Noredirect=false looks fishy but I’m not sure. Think your best bet would be to get a K2 Support ticket going to get this investigated asap. Vernon


I realize that this topic is about 7 months old; I also realize that trusts were discussed earlier in the topic.


This topic was the most relevant result that I found in Google and I wanted to post my solution here so that others mght be able to use it.


My error message:


"The following form template cannot be opened because the system administrator has disabled opening form templates from the Internet: https://xxxxxxxxx.com/xxxx/xxxxxx/IT/UserAccess/Forms/NewUserAccess.xsn
Access is denied."


I received the same URL which returned the results on google, leading me here:


" OpenIn=PreferClient&NoRedirect=true&XmlLocation="


The solution was vastly more simple than I thought it would be:


In IE goto Tools>Internet Options


Goto "Sites"


Choose "Trusted Sites"


Add the site which hosts the form (https://xxxxxxxx.com) to trusted sites. This resolved the issue for me. This is also why only 1 or 2 clients see the problem; they have their browser incorrectly configured. Perhaps this is too simple but I wanted to put it out there! Microsoft says you have to go into the farm or change settings in the InfoPath forms service. This fixed it for me. Hope it helps someone else!


Reply