Issue with Data form Wizard ASP.NET?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David C. Allen

    #1

    Issue with Data form Wizard ASP.NET?

    I am following thru the examples in the book I am studying for my MCSD. This
    is the web applications book.

    One example is to use the data form wizard to create a simple data form on
    the northwind customers table.When I try to run the code after the wizard
    has generated the form I get several compile errors like this:

    D:\Projects\DOT NET\MCSD\70-305\305C05\dsCu stOrders.vb(86) : Reference
    required to assembly 'System.Xml' containing the implemented interface
    'System.Xml.Ser ialization.IXml Serializable'. Add one to your project.

    When I looked at the generated code there is a
    Imports System.Xml

    already.

    Anyone know what this error means?

    Thanks!


  • tom wisnowski

    #2
    RE: Issue with Data form Wizard ASP.NET?

    The Imports key word just imports the namespace.

    Since the required interface is defined in another assembly, you need to
    physically refernce this assembly. In project explorer, right click
    references, add... then find the reference you need, System.Xml.

    If you are not using the ide to compile, you should be able to specify the
    references using a switch on the command line. Since i am not familiar with
    the VB compiler, you will have to look that one up.

    Tom Wisnowski
    Statera
    MCP MCAD

    "David C. Allen" wrote:
    [color=blue]
    > I am following thru the examples in the book I am studying for my MCSD. This
    > is the web applications book.
    >
    > One example is to use the data form wizard to create a simple data form on
    > the northwind customers table.When I try to run the code after the wizard
    > has generated the form I get several compile errors like this:
    >
    > D:\Projects\DOT NET\MCSD\70-305\305C05\dsCu stOrders.vb(86) : Reference
    > required to assembly 'System.Xml' containing the implemented interface
    > 'System.Xml.Ser ialization.IXml Serializable'. Add one to your project.
    >
    > When I looked at the generated code there is a
    > Imports System.Xml
    >
    > already.
    >
    > Anyone know what this error means?
    >
    > Thanks!
    >
    >
    >[/color]

    Comment

    • David C. Allen

      #3
      Re: Issue with Data form Wizard ASP.NET?

      I just checked the references and System.Xml is already there.

      Are there any known issues with the asp.net Data Form Wizard?

      Here is the beginning of the Autogenerated code:

      '---------------------------------------------------------------------------
      ---

      ' <autogenerate d>

      ' This code was generated by a tool.

      ' Runtime Version: 1.1.4322.2032

      '

      ' Changes to this file may cause incorrect behavior and will be lost if

      ' the code is regenerated.

      ' </autogenerated>

      '---------------------------------------------------------------------------
      ---

      Option Strict Off

      Option Explicit On

      Imports System

      Imports System.Data

      Imports System.Runtime. Serialization

      Imports System.Xml



      <Serializable() , _

      System.Componen tModel.Designer CategoryAttribu te("code"), _

      System.Diagnost ics.DebuggerSte pThrough(), _

      System.Componen tModel.ToolboxI tem(true)> _

      Public Class dsCustOrders

      Inherits DataSet

      Here is the beginning of the Autogenerated code:

      The last line that says Inherits DataSet has DataSet underlined in the IDE
      and the error I described bellow is flagged for it.



      "tom wisnowski" <tom wisnowski@discu ssions.microsof t.com> wrote in message
      news:9A23D9E3-8536-47D8-8A87-75B7676536B4@mi crosoft.com...[color=blue]
      > The Imports key word just imports the namespace.
      >
      > Since the required interface is defined in another assembly, you need to
      > physically refernce this assembly. In project explorer, right click
      > references, add... then find the reference you need, System.Xml.
      >
      > If you are not using the ide to compile, you should be able to specify the
      > references using a switch on the command line. Since i am not familiar[/color]
      with[color=blue]
      > the VB compiler, you will have to look that one up.
      >
      > Tom Wisnowski
      > Statera
      > MCP MCAD
      >
      > "David C. Allen" wrote:
      >[color=green]
      > > I am following thru the examples in the book I am studying for my MCSD.[/color][/color]
      This[color=blue][color=green]
      > > is the web applications book.
      > >
      > > One example is to use the data form wizard to create a simple data form[/color][/color]
      on[color=blue][color=green]
      > > the northwind customers table.When I try to run the code after the[/color][/color]
      wizard[color=blue][color=green]
      > > has generated the form I get several compile errors like this:
      > >
      > > D:\Projects\DOT NET\MCSD\70-305\305C05\dsCu stOrders.vb(86) : Reference
      > > required to assembly 'System.Xml' containing the implemented interface
      > > 'System.Xml.Ser ialization.IXml Serializable'. Add one to your project.
      > >
      > > When I looked at the generated code there is a
      > > Imports System.Xml
      > >
      > > already.
      > >
      > > Anyone know what this error means?
      > >
      > > Thanks!
      > >
      > >
      > >[/color][/color]


      Comment

      • David C. Allen

        #4
        Re: Issue with Data form Wizard ASP.NET?

        I found the problem. I deleted the reference to System.XML and added it back
        in. It added back in as lower cases system.xml. Not sure why it fixed it but
        it did.


        "tom wisnowski" <tom wisnowski@discu ssions.microsof t.com> wrote in message
        news:9A23D9E3-8536-47D8-8A87-75B7676536B4@mi crosoft.com...[color=blue]
        > The Imports key word just imports the namespace.
        >
        > Since the required interface is defined in another assembly, you need to
        > physically refernce this assembly. In project explorer, right click
        > references, add... then find the reference you need, System.Xml.
        >
        > If you are not using the ide to compile, you should be able to specify the
        > references using a switch on the command line. Since i am not familiar[/color]
        with[color=blue]
        > the VB compiler, you will have to look that one up.
        >
        > Tom Wisnowski
        > Statera
        > MCP MCAD
        >
        > "David C. Allen" wrote:
        >[color=green]
        > > I am following thru the examples in the book I am studying for my MCSD.[/color][/color]
        This[color=blue][color=green]
        > > is the web applications book.
        > >
        > > One example is to use the data form wizard to create a simple data form[/color][/color]
        on[color=blue][color=green]
        > > the northwind customers table.When I try to run the code after the[/color][/color]
        wizard[color=blue][color=green]
        > > has generated the form I get several compile errors like this:
        > >
        > > D:\Projects\DOT NET\MCSD\70-305\305C05\dsCu stOrders.vb(86) : Reference
        > > required to assembly 'System.Xml' containing the implemented interface
        > > 'System.Xml.Ser ialization.IXml Serializable'. Add one to your project.
        > >
        > > When I looked at the generated code there is a
        > > Imports System.Xml
        > >
        > > already.
        > >
        > > Anyone know what this error means?
        > >
        > > Thanks!
        > >
        > >
        > >[/color][/color]


        Comment

        • David C. Allen

          #5
          Re: Issue with Data form Wizard ASP.NET?

          I found the problem. I deleted the reference to System.XML and added it back
          in. It added back in as lower cases system.xml. Not sure why it fixed it but
          it did.


          "tom wisnowski" <tom wisnowski@discu ssions.microsof t.com> wrote in message
          news:9A23D9E3-8536-47D8-8A87-75B7676536B4@mi crosoft.com...[color=blue]
          > The Imports key word just imports the namespace.
          >
          > Since the required interface is defined in another assembly, you need to
          > physically refernce this assembly. In project explorer, right click
          > references, add... then find the reference you need, System.Xml.
          >
          > If you are not using the ide to compile, you should be able to specify the
          > references using a switch on the command line. Since i am not familiar[/color]
          with[color=blue]
          > the VB compiler, you will have to look that one up.
          >
          > Tom Wisnowski
          > Statera
          > MCP MCAD
          >
          > "David C. Allen" wrote:
          >[color=green]
          > > I am following thru the examples in the book I am studying for my MCSD.[/color][/color]
          This[color=blue][color=green]
          > > is the web applications book.
          > >
          > > One example is to use the data form wizard to create a simple data form[/color][/color]
          on[color=blue][color=green]
          > > the northwind customers table.When I try to run the code after the[/color][/color]
          wizard[color=blue][color=green]
          > > has generated the form I get several compile errors like this:
          > >
          > > D:\Projects\DOT NET\MCSD\70-305\305C05\dsCu stOrders.vb(86) : Reference
          > > required to assembly 'System.Xml' containing the implemented interface
          > > 'System.Xml.Ser ialization.IXml Serializable'. Add one to your project.
          > >
          > > When I looked at the generated code there is a
          > > Imports System.Xml
          > >
          > > already.
          > >
          > > Anyone know what this error means?
          > >
          > > Thanks!
          > >
          > >
          > >[/color][/color]


          Comment

          Working...