Soap Formatter namespace not found


M

Matthew Connor

Hi all:

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? 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
 
Ad

Advertisements

L

Larry Lard

Matthew said:
Hi all:

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?
You need to include a reference to the DLL
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
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
The various versions of Visual Studio.NET are tightly coupled to the
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.
 
Ad

Advertisements

M

Matthew Connor

Larry said:
You need to include a reference to the DLL
System.Runtime.Serialization.Formatters.Soap.dll
Larry:

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top