Problem:Recently I uploaded a ASP.NET2.0 website with a hosting provider (shared environment), and started getting this error when ever I wanted to load the providers declared on the config file:[SecurityException: Request for the permission of type 'System.Security.Permission... mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934... failed.] System.Security.CodeAccessS... demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessP... ......
Problem:The value of DateTime property is assigned but its not included in the serialized xml.SomeClass msg = new SomeClass();msg.generated_on = DateTime.Now ; if we serialize this we will find this: <?xml version="1.0"?><SomeC... xmlns:xsd="http://www.w3.or... xmlns:xsi="http://www.w3.or... /> as opposed to<?xml version="1.0"?><SomeC... xmlns:xsd="http://www.w3.or... xmlns:xsi="http://www.w3.or... generated_on="12/07/2007 ......
Members with names ending on 'Specified' suffix have special meaning to the XmlSerializer: they control serialization of optional ValueType members and have to be of type System.Boolean.Here is a test class to generate the exception where I explicitly declared the 'generating_bugSpecified' Member to integer.[System.Xml.Seriali... public class TestBug{ [System.Xml.Serialization.X... System.Int32 generating_bug; /// <remarks/>[System.Xml... ......