S
Stephen Hynds
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?
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?