Home All Groups Group Topic Archive Search About

XmlSerializer : CS0647 Compilation Error

Author
22 Aug 2005 2:38 PM
Ian Armitage
Hi,

I am having problems using the XmlSerializer from within a signed assembly. 

I have narrowed down the problem to a compilation error (CS0647) occuring
when .NET tries to compile code generated by the XmlSerializer.  The JIT
compiler gives an error when trying to process the following attribute: - [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")].

To make matters worse, this problem is intermittent.  I have seen various
postings around the web which seem to indicate that other people have
experienced this same issue.

Can anybody help me with this?  Any assistance will be greatly appreciated!

--
Ian Armitage

Author
23 Aug 2005 12:43 PM
Nicole Calinoiu
You might want to take a look at the thread at
http://groups.google.com/group/microsoft.public.dotnet.security/browse_frm/thread/8529c05b26be4d30.
If the machines on which this problem occurs have SP1 installed, could you
please post a small code sample that demonstrates the problem?



Show quoteHide quote
"Ian Armitage" <IanArmit***@discussions.microsoft.com> wrote in message
news:46787A57-0F0F-43EA-BF1C-A67F1995D1B2@microsoft.com...
> Hi,
>
> I am having problems using the XmlSerializer from within a signed
> assembly.
>
> I have narrowed down the problem to a compilation error (CS0647) occuring
> when .NET tries to compile code generated by the XmlSerializer.  The JIT
> compiler gives an error when trying to process the following attribute: -
> [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.LinkDemand,
> Name="FullTrust")].
>
> To make matters worse, this problem is intermittent.  I have seen various
> postings around the web which seem to indicate that other people have
> experienced this same issue.
>
> Can anybody help me with this?  Any assistance will be greatly
> appreciated!
>
> --
> Ian Armitage