By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,403 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,403 IT Pros & Developers. It's quick & easy.

Soap Formatter namespace not found

P: n/a
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

Jun 1 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Matthew Connor wrote:
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.

--
Larry Lard
Replies to group please

Jun 1 '06 #2

P: n/a
Larry Lard wrote:
You need to include a reference to the DLL
System.Runtime.Serialization.Formatters.Soap.dl l


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

Jun 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.