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?
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?