xmlserializer is not defined

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • netkev@gmail.com

    #1

    xmlserializer is not defined

    I have the following in my vb.net smartdevice project in visual studio
    2003(applicatio n is for a smartphone 2003 device):
    Imports System.IO
    Imports System.Xml.Seri alization
    Imports System.Xml
    Imports System.Text
    Dim s As New XmlSerializer(o bj.GetType)

    I have .net framework 1.1 with the .net framework sp1 patch
    windows xp sp2

    My error is on the last line and says "Type xmlserializer is not
    defined". Anyone know why?

    I think I need this because I generated a class using xsd.exe from an
    xml schema I defined. Then I created a class instance, filled it with
    data and now I want to write this xml object to a file(as xml) so that
    I can later read it back.

  • Herfried K. Wagner [MVP]

    #2
    Re: xmlserializer is not defined

    <netkev@gmail.c om> schrieb:[color=blue]
    >I have the following in my vb.net smartdevice project in visual studio
    > 2003(applicatio n is for a smartphone 2003 device):
    > Imports System.IO
    > Imports System.Xml.Seri alization
    > Imports System.Xml
    > Imports System.Text
    > Dim s As New XmlSerializer(o bj.GetType)
    >
    > I have .net framework 1.1 with the .net framework sp1 patch
    > windows xp sp2
    >
    > My error is on the last line and says "Type xmlserializer is not
    > defined".[/color]

    Make sure your project contains a reference to "System.Xml.dll ".

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • Armin Zingler

      #3
      Re: xmlserializer is not defined

      <netkev@gmail.c om> schrieb[color=blue]
      > I have the following in my vb.net smartdevice project in visual
      > studio 2003(applicatio n is for a smartphone 2003 device):
      > Imports System.IO
      > Imports System.Xml.Seri alization
      > Imports System.Xml
      > Imports System.Text
      > Dim s As New XmlSerializer(o bj.GetType)
      >
      > I have .net framework 1.1 with the .net framework sp1 patch
      > windows xp sp2
      >
      > My error is on the last line and says "Type xmlserializer is not
      > defined". Anyone know why?
      >
      > I think I need this because I generated a class using xsd.exe from
      > an xml schema I defined. Then I created a class instance, filled it
      > with data and now I want to write this xml object to a file(as xml)
      > so that I can later read it back.
      >[/color]


      Not supported in the compact framework. See the "plattforms :" hints at the
      bottom of the docs on the class.

      Armin

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: xmlserializer is not defined

        Errata:

        Ooops. Ignore my message -- as Armin points out, 'XmlSerializer' is not
        supported by the .NET Compact Framework.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        • netkev@gmail.com

          #5
          Re: xmlserializer is not defined

          bummer! Anyone know how I can get my xml object to a file as xml then?

          Comment

          Working...