473,545 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.F ormatters.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 4312

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.F ormatters.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.F ormatters.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 .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

Jun 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2517
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 ObjRef cannot be accessed". The solution was in the server's app.config file where I had to set the 'typeFilterLevel' to 'Full' for both the SOAP as...
0
1707
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 identical from a text point of view, however, from the xml-point of view they are (one declares all types inline, the other by type-attributes and...
8
6285
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. Is there a document, or can some one list those types that are not serializable and the syntax for converting them? Thanks
6
2404
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 to use for the web services clients. But using HTTPwith SOAP has got the least performance amoung all others (exTCP with Binary etc). The question...
2
3654
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> <mm:TheHeader xmlns:mm="http://The URL"> <SomeValue>123</SomeValue> <AnotherValue>blabla</AnotherValue> </mm:TheHeader >
0
965
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 Error, no type associated with Xml key a3 .... The same thing happens when we run dotfuscator with option to replace names.
0
1547
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 and exposes a web service with nullable data types - like: public class DataItem { DateTime? Timestamp; int? SomeData; }
0
1112
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: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"...
2
1488
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
7416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7776
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6001
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5347
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3473
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.