Hi All,
I have code written that opens a web connection to a service and returns the output to the xmlDocument class.
This code had been working fine when run on client but I want to run it on server now.
When I change the properties of my class to server and run the function, when the code calls the open method of the xmlDocument class (to connect to the web service) I get the following error:
Request for the permission of type 'FileIOPermission' failed.
(S)\Classes\FileIOPermission\demand
(S)\Classes\XmlDocument\load
I am aware I have to execute permissions but I am unsure of which type for FileIO - also the string used in the line to open the connection called openConnection - do I use this?:
xmlDocument.Open(openConnection);
My question is for using the xmlDocument class on server how do I execute effective permissions to get past the FileIOPermission error.
Thanks in advance.