|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Soap Formatter namespace not foundI am new to VB.NET and I am trying to serialize a custom structure via a SOAP formatter. My Microsoft published Visual Basic .NET book says to use the following Imports statement: Imports System.Runtime.Serialization.Formatters.Soap The problem is that VB is not recognizing that as a valid namespace and is generating the following error: error BC30466: Namespace or type 'Soap' for the Imports 'System.Runtime.Serialization.Formatters.Soap' cannot be found. Can anyone shed some light on this? I have the .NET Framework 2.0 installed but as you can see from my system information below, the IDE reports version 1.0. I don't know if that is significant or not. Thank you! ---SYSTEM INFO--- Microsoft Development Environment 2002 Version 7.0.9492 Microsoft .NET Framework 1.0 Version 1.0.3705 Microsoft Visual Basic .NET 55538-700-1768733-18470 Matthew Connor Matthew Connor wrote:
Show quoteHide quote > Hi all: You need to include a reference to the DLL> > I am new to VB.NET and I am trying to serialize a custom structure > via a SOAP formatter. My Microsoft published Visual Basic .NET book > says to use the following Imports statement: > > Imports System.Runtime.Serialization.Formatters.Soap > > The problem is that VB is not recognizing that as a valid namespace > and is generating the following error: > > error BC30466: Namespace or type 'Soap' for the Imports > 'System.Runtime.Serialization.Formatters.Soap' cannot be found. > > Can anyone shed some light on this? System.Runtime.Serialization.Formatters.Soap.dll - this namespace isn't in one of the default-included DLLs. Don't ask me why :) The place to look in the docs for this is in 'about X class' topic, at the bottom in the Requirements section, where it says 'Assembly:' > I have the .NET Framework 2.0 The various versions of Visual Studio.NET are tightly coupled to the> installed but as you can see from my system information below, the IDE > reports version 1.0. I don't know if that is significant or not. Thank > you! > > ---SYSTEM INFO--- > Microsoft Development Environment 2002 Version 7.0.9492 > Microsoft .NET Framework 1.0 Version 1.0.3705 > Microsoft Visual Basic .NET 55538-700-1768733-18470 various versions of the Framework: 2002 <-> 1.0 2003 <-> 1.1 2005 <-> 2.0 So the apps you are making are actually targetting the 1.0 Framework. Note that while you may have Framework 2.0 installed, you *also* have 1.0 installed. It's not like, say, a DLL in the old days, where the later version replaces the former. The various Frameworks are separate entities and coexist with each other. -- Larry Lard Replies to group please Larry Lard wrote:
> You need to include a reference to the DLL Larry:>System.Runtime.Serialization.Formatters.Soap.dll This worked perfectly! Thank you very much for your quick, helpful response! Also, the information about 2002 targeting the 1.0 framework is good to know! Take care. Matthew Connor
what's available in WMI
File sitting on a network drive is still open by another applicati Deleted row in dataset?? popup windows killer Why choose SQL Express over Access? Socket and ThreadPool Best way to sort... "select case" statement optimization in VB and C# problems loading frames asp Synchronize VS2005 Projects directory? |
|||||||||||||||||||||||