internal class of ConfigXmlDocument). I started a new thread,
ConfigXmlDocument Handles Whitespace Improperly. I detailed what I've found
so far and how it causes XmlSerializer to fail.
David B. Bitton
"Dennis Redfield" <dennis.redfield@acadia-ins.com> wrote in message
news:%23DKsGpIVEHA.808@tk2msftngp13.phx.gbl...
> david,
> could we see the actual XML file and its schema?
> thanks.
> dlr
> "David B. Bitton" <david@codenoevil.com> wrote in message
> news:uwBTsO%23UEHA.2544@TK2MSFTNGP10.phx.gbl...
> > As even more clarification, I installed my code on another machine and I
> > received the same error.
> >
> > --
> > --
> >
> > David B. Bitton
> > david@codenoevil.com
> >
www.codenoevil.com > >
> > Code Made Fresh Daily™
> > "Christoph Schittko [MVP]" <christophdotnetINVALID@austin.rr.com> wrote
in
> > message news:%23f0RjeuUEHA.3076@TK2MSFTNGP10.phx.gbl...
> > > David,
> > >
> > > Can you take a look at my troubleshooting article on MSDN and let me
> know
> > if
> > > that helped diagnosing the problem?
> > >
> > >
> > > --
> > > HTH
> > > Christoph Schittko [MVP]
> > > Software Architect, .NET Mentor
> > >
> > > [0]
> > >
> >
>
http://msdn.microsoft.com/xml/default.aspx?pull=/library/en-us/dnxmlnet/html/trblshtxsd.asp
> > >
> > >
> > > "David B. Bitton" <david@codenoevil.com> wrote in message
> > > news:O7GgCekUEHA.2944@tk2msftngp13.phx.gbl...
> > > > I'm experiencing odd behavior on the part of the XMLSerializer. I'm
> > > > deserializing an XmlNode. The XmlNode is pass as part of a call to
> > > > IConfigurationSectionHandler.Create. My XML looks like:
> > > >
> > > > <sectionName>
> > > > <settings>
> > > > ...
> > > > ...
> > > > ...
> > > > </settings>
> > > > </sectionName>
> > > >
> > > > I have define my class as such:
> > > >
> > > > [XmlRoot(Namespace="", IsNullable=false, ElementName="settings")]
> > > > public class MyAppSettings
> > > > {
> > > > ...
> > > > }
> > > >
> > > > I am passing my XmlNode to the XmlSerializer like so:
> > > >
> > > > return serializer.Deserialize( new XmlNodeReader(
> > > > section.ChildNodes[0] ) );
> > > >
> > > > What happens is I get an System.NullReferenceException eminating
from
> > the
> > > > System.Xml.Serialization.XmlSerializationReader.UnknownNode()
routine
> > > > which
> > > > is being called by the dynamically created derivative
> > > > XmlSerializationReader
> > > > code. I can see this in the stack trace.
> > > >
> > > > Perhaps someone can shed some light on this?
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > --
> > > >
> > > > David B. Bitton
> > > > david@codenoevil.com
> > > >
www.codenoevil.com > > > >
> > > > Code Made Fresh DailyT
> > > >
> > > >
> > >
> > >
> >
> >
>
>