XmlSerializer XmlAttributeOverrides Security Exception

J

Joe Reiss

I'm serializing data from a SQL table to a XML file:

on the line:

XmlSerializer x = new XmlSerializer(typeof(List<y>),o);

where o is a XmlAttributesOverrides object

I get

The action that failed was: Demand The type of the first permission that
failed was: System.Security.PermissionSet The Zone of the assembly that
failed was: MyComputer
on the hosted server. The above runs fine on my local development machine.
Also, if I don't use the 'o' Overide object it works well on the Hosted
server. Would I need some kind of elevated permission to do this on a
typical shared hosted server?

thanx,
joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top