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 2007

Tip: Looking for answers? Try searching our database.

Loading an XML file as a data source from a SharePoint Library.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen Hynds - 10 Sep 2007 09:12 GMT
I have some code in a form that loads an XML file as a secondary data
source. The code is:

           Dim q As FileQueryConnection =
CType(Me.DataConnections("WorkProgramme"), FileQueryConnection)
           q.FileLocation = strPath
           q.Execute()

strPath is a string containing the path of the xml file in the format
"http://server/site/documentlib/filename.xml" as the xml file is
located on a SharePoint server. This xml file itself is generated
using another Infopath form.

The code works fine in the client, but when I deploy it to the
SharePoint server and try and run it I get an error telling me that
Infopath cannot open the data source.

To me it seems that it must be a security error, but I cannot see
where the problem can lie.

Does anyone have any ideas?
K.Ramana Reddy(GGK Tech) - 10 Sep 2007 10:10 GMT
Hi,

What is the security level of your infopath form?
Signature

k.Ramana Reddy
http://www.GGKtech.com

> I have some code in a form that loads an XML file as a secondary data
> source. The code is:
[quoted text clipped - 17 lines]
>
> Does anyone have any ideas?
Stephen Hynds - 10 Sep 2007 10:26 GMT
Hi, thanks for the quick reply. The security level is set to full
trust at the moment. Should I change this to domain trust perhaps?

I was thinking it could perhaps be related to the infopath service on
the SharePoint service. Is this a seperate service from the one that
the website runs under? I have kerberos pass through authentication
enabled and working on all my application pools and services etc. but
didn't know if the Infopath forms ran under their own specific service
account that I've yet to locate.

Cheers

Stephen

On 10 Sep, 10:10, K.Ramana Reddy(GGK Tech)
<KRamanaReddyGGKT...@discussions.microsoft.com> wrote:
> Hi,
>
[quoted text clipped - 25 lines]
>
> - Show quoted text -
Stephen Hynds - 11 Sep 2007 10:16 GMT
I tried the Domain Trust setting and it also results in the same
error. Anyone got any thoughts?

> Hi, thanks for the quick reply. The security level is set to full
> trust at the moment. Should I change this to domain trust perhaps?
[quoted text clipped - 44 lines]
>
> - Show quoted text -
 
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.