Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 4th, 2006, 08:25 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: norcross, Ga, USA.
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default error while compiling

hi all

when i compiled a class it gives the following error.

c:\inetpub\wwwroot\shoppingcart2appVB\CART.VB(6) : error BC30466: Namespace or t
ype 'Serialization' for the Imports 'System.Xml.Serialization' cannot be found.

Imports System.Xml.Serialization
        ~~~~~~~~~~~~~~~~~~~~~~~~
c:\inetpub\wwwroot\shoppingcart2appVB\CART.VB(16) : error BC30009: Reference req
uired to assembly 'System.Xml' containing the implemented interface 'System.Xml.
Serialization.IXmlSerializable'. Add one to your project.

            Dim products As New DataSet
                                ~~~~~~~
c:\inetpub\wwwroot\shoppingcart2appVB\CART.VB(25) : error BC30009: Reference req
uired to assembly 'System.Xml' containing the implemented interface 'System.Xml.
Serialization.IXmlSerializable'. Add one to your project.

            Dim product As New DataSet
                               ~~~~~~~
c:\inetpub\wwwroot\shoppingcart2appVB\CART.VB(35) : error BC30009: Reference req
uired to assembly 'System.Xml' containing the implemented interface 'System.Xml.
Serialization.IXmlSerializable'. Add one to your project.

            Dim specification As New DataSet
                                     ~~~~~~~

how can i rectify it?

thanks

  #2 (permalink)  
Old October 4th, 2006, 08:31 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Are you using the VBC cmd line compiler?

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
  #3 (permalink)  
Old October 4th, 2006, 08:36 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: norcross, Ga, USA.
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, i am using vbc

  #4 (permalink)  
Old October 4th, 2006, 08:42 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The vbc has a /reference switch that you should use to add namespaces such as:

VBC /target:library /out:SomeClass /reference:System.dll,System.Data.dll SomeClass.vb


--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
  #5 (permalink)  
Old October 4th, 2006, 08:46 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: norcross, Ga, USA.
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
i used

C:\Documents and Settings\sarah\My Documents\Visual Studio Projects\shoppingcar
t2appVB>vbc /t:library /out:c:\inetpub\wwwroot\shoppingcart2appVB\bin\CART .dll /
r:System.dll /r:System.data.dll c:\inetpub\wwwroot\shoppingcart2appVB\CART.vb

then where have i gone wrong?

  #6 (permalink)  
Old October 4th, 2006, 09:22 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You have to reference every namespace you are using, in this case System.XML.Serialization and you will have to include a reference to System.Data since that is where datasets are found.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error compiling link usercontrol inside sharepoint mcarola ASP.NET 2.0 Professional 0 December 4th, 2008 03:51 PM
compiling error sarah lee ASP.NET 1.0 and 1.1 Basics 7 May 31st, 2007 07:24 AM
error while compiling servlet in Weblogic8.1 adityasharma003 Servlets 0 April 12th, 2006 05:30 AM
Error in source code compiling angelika J2EE 2 December 29th, 2003 11:45 AM
Char Error In Code - Compiling but strange results aolden C++ Programming 1 July 17th, 2003 11:38 AM



All times are GMT -4. The time now is 02:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.