Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > XmlSerializer XmlAttributeOverrides Security Exception

Thread Tools

XmlSerializer XmlAttributeOverrides Security Exception

Joe Reiss
Posts: n/a
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?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XMLSerializer and Parametersless Constructors Michael Brockman ASP .Net 2 10-17-2004 04:36 PM
XmlSerializer - Cannot execute a program csc.exe =?Utf-8?B?QW5kcmV3RG90SGF5?= ASP .Net 4 08-04-2004 10:39 AM
XmlSerializer constructor error: can't find ...dll zimmy ASP .Net 0 07-07-2004 07:00 PM
XmlAttributeOverrides with Custom Attributes? ASwanevelder ASP .Net Web Services 0 05-26-2004 09:16 AM
invalid cast exception with XmlSerializer jc ASP .Net Web Services 0 09-15-2003 10:54 AM