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 / November 2006

Tip: Looking for answers? Try searching our database.

Published Form does not read data from a xml file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chez - 09 Nov 2006 15:12 GMT
I am new to infopath.  I have created a new form that reads an xml file to
give additional information or particular users.  My form runs fine in design
mode.  However when i publish the form to either sharepoint or even a local
directory on my machine i get an error "system.sercurity exception: etc..
system.security.permissions.fileiopermission,mscorlib, version=2.0 etc.."

I am not sure if i need to add setting to my form or code can anyone help?
Signature

Chez

S.Y.M. Wong-A-Ton - 12 Nov 2006 03:17 GMT
Your code needs permission to be able to read from or write to the local file
system.

Try giving your form Full Trust by either registering it on the local
machine using regform.exe
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsd
kUsingTheFormRegistrationTool_HV01073334.asp
)
or signing it with a digital certificate. Also see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsd
kUnderstandingFullyTrustedForms_HV01073332.asp
.
---
S.Y.M. Wong-A-Ton

> I am new to infopath.  I have created a new form that reads an xml file to
> give additional information or particular users.  My form runs fine in design
[quoted text clipped - 3 lines]
>
> I am not sure if i need to add setting to my form or code can anyone help?
Chez - 22 Nov 2006 10:25 GMT
By running the regform allowed my publised form on my local machine to read
the xml file.  However i am still confused when it comes to sharepoint if i
publish the form from my local machine to a sharepoint site how do i set it
as fully trusted do i run the regform again on the sharepoint server as this
does not work from my local??
Signature

Chez

> Your code needs permission to be able to read from or write to the local file
> system.
[quoted text clipped - 14 lines]
> >
> > I am not sure if i need to add setting to my form or code can anyone help?
S.Y.M. Wong-A-Ton - 23 Nov 2006 05:13 GMT
You should sign your form with a digital certificate and place the XML file
on a central location (shared folder or the like). Or if you include the XML
file as a resource file to your form (Tools > Resource Files) you should not
experience any issues.
---
S.Y.M. Wong-A-Ton

> By running the regform allowed my publised form on my local machine to read
> the xml file.  However i am still confused when it comes to sharepoint if i
[quoted text clipped - 20 lines]
> > >
> > > I am not sure if i need to add setting to my form or code can anyone help?
 
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.