Quantcast
Channel: Dick Wenning's Activities
Viewing all articles
Browse latest Browse all 1245

XmlDocument class run on Server FileIOPermission errors

$
0
0

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.


Viewing all articles
Browse latest Browse all 1245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>