473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Soap Formatter namespace not found

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
2 4299

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christopher Pragash | last post by:
Hello All, Recently I had posted a message to forum requesting assistance to resolve a security issueI was facing in .NET Framework 1.1, the error being "Because of Security Restrictions, the...
0
by: stefan | last post by:
hello everybody, I want to call a method on a SAP WAS. For testing purposes, I do have the same method on two WASs. One of them has been updated recently. The wsdl-files of both are not...
8
by: xmail123 | last post by:
Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web methods. ...
6
by: Guest | last post by:
Hi, I unerstand that if you choose IIS to host your .Net Remotingcomponents with HTTP channel and SOAP formatter, you get thebuilt-in security and configuraion features of IIS. Also we canexpose it...
2
by: Corne Rabe | last post by:
Hi all I've got a webservices that will be called by a delphi product. They have defined a soap message that they will use to call my webservice. A header snippet is found below: <soap:Header>...
0
by: Mike In Oz | last post by:
We are using SoapFormatter to Serialize/Deserialize to a local file all works well. But when we change project assembly name or root namespace the Deserialize stuff up with a message: Parse...
0
by: nightwatch77 | last post by:
Hello, I have recently stumbled upon a problem with serialization of nullable value types in .Net 2.0 and would appreciate any explanation of what's happening. My application is hosted in IIS...
0
by: HolmerJohn | last post by:
When calling a .Net web service from an Axis client on an AS400, the parameters are not being passed correctly. When the proxy is built in C#, the soap envelope below is sent, which works: ...
2
by: ajinkya7588 | last post by:
I m confusing about when to use Soap and when to use Xml Fornatter in .net. Can any one help me to solve this question?? Thank you..
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.