473,791 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

indigo deserialize

Hi !

I have a problem with « Indigo », it can’t deserialize methods having a
System.Collecti ons.Specialized .NameValueColle ction
I’ve tried the solution of an approching issue in the « Known Issues » :
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50215 \Microsoft Avalon and
Indigo Beta 1
RC\WinFxKnownIs sues.rtf ,
But it didn’t work even with the advised XML config on both sides:
client and server.
I joined a copy of the error message, as well as the solution I’ve tried.

Anyone know about this problem?

Marc Falesse,
NetMakers Ingénierie.

---- ERROR --------------------------------------

No type has DataContract
'http://schemas.datacon tract.org/2004/07/System.Collecti ons:CaseInsensi tiveHashCodePro vider'
in element ':HashProvider' . Use KnownType attribute to specify types
that are not known statically
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Runtime. Serialization.S erializationExc eption:
No type has DataContract
'http://schemas.datacon tract.org/2004/07/System.Collecti ons:CaseInsensi tiveHashCodePro vider'
in element ':HashProvider' . Use KnownType attribute to specify types
that are not known statically

Source Error:

Line 324: public System.Collecti ons.Specialized .NameValueColle ction
GetProfilApplic ation(string application, int debut, int nb)
Line 325: {
Line 326: return
base.InnerProxy .GetProfilAppli cation(applicat ion, debut, nb);
Line 327: }
Line 328:

---- KNOWN ISSUE ----------------------------------

Issue: Sending and Receiving Instances of Collection, Dictionary and
SortedDictionar y

Details: When sending or receiving instances of the types
System.Collecti ons.ObjectModel .Collection<T>,
System.Collecti ons.Generic.Dic tionary<K,V> and
System.Collecti ons.Generic.Sor tedDictionary<K ,V>, if an operation
parameter or return value is of one of these types (or of a type that
contains a member of one of these types anywhere in its object graph),
an exception will be thrown during deserialization on the receiving end.

Workaround: To work around the issue, add the following to config:

<system.runtime .serialization>
<xmlFormatter maxTypes="10000 " maxItemsInObjec tGraph="50000">
<declaredType s>
<add type="System.Co llections.Gener ic.SortedDictio nary`2, System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<knownType
type="System.Co llections.Gener ic.SortedDictio nary`2+KeyValue PairComparer,
System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9" >
<parameter index="0" />
<parameter index="1" />
</knownType>
<knownType type="System.Co llections.Gener ic.GenericCompa rer`1,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
<knownType type="System.Co llections.Gener ic.KeyValuePair `2,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
<parameter index="1" />
</knownType>
</add>
<add type="System.Co llections.Objec tModel.Collecti on`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<knownType type="System.Co llections.Gener ic.List`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
</add>
<add type="System.Co llections.Gener ic.SortedList`2 , System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<knownType type="System.Co llections.Gener ic.GenericCompa rer`1,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
</add>
<add type="System.Co llections.Gener ic.Dictionary`2 , mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<knownType
type="System.Co llections.Gener ic.GenericEqual ityComparer`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
<knownType
type="System.Co llections.Gener ic.ObjectEquali tyComparer`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
<knownType type="System.Co llections.Gener ic.KeyValuePair `2,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
<parameter index="1" />
</knownType>
</add>
</declaredTypes>
</xmlFormatter>
</system.runtime. serialization>

Nov 22 '05 #1
1 2798
well i decided to use a :
System.Collecti ons.Generic.Key ValuePair<strin g, string>

Marc Falesse a écrit :
Hi !

I have a problem with « Indigo », it can’t deserialize methods having a
System.Collecti ons.Specialized .NameValueColle ction
I’ve tried the solution of an approching issue in the « Known Issues » :
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50215 \Microsoft Avalon and
Indigo Beta 1
RC\WinFxKnownIs sues.rtf ,
But it didn’t work even with the advised XML config on both sides:
client and server.
I joined a copy of the error message, as well as the solution I’ve tried.

Anyone know about this problem?

Marc Falesse,
NetMakers Ingénierie.

---- ERROR --------------------------------------

No type has DataContract
'http://schemas.datacon tract.org/2004/07/System.Collecti ons:CaseInsensi tiveHashCodePro vider'
in element ':HashProvider' . Use KnownType attribute to specify types
that are not known statically
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Runtime. Serialization.S erializationExc eption:
No type has DataContract
'http://schemas.datacon tract.org/2004/07/System.Collecti ons:CaseInsensi tiveHashCodePro vider'
in element ':HashProvider' . Use KnownType attribute to specify types
that are not known statically

Source Error:

Line 324: public System.Collecti ons.Specialized .NameValueColle ction
GetProfilApplic ation(string application, int debut, int nb)
Line 325: {
Line 326: return
base.InnerProxy .GetProfilAppli cation(applicat ion, debut, nb);
Line 327: }
Line 328:

---- KNOWN ISSUE ----------------------------------

Issue: Sending and Receiving Instances of Collection, Dictionary and
SortedDictionar y

Details: When sending or receiving instances of the types
System.Collecti ons.ObjectModel .Collection<T>,
System.Collecti ons.Generic.Dic tionary<K,V> and
System.Collecti ons.Generic.Sor tedDictionary<K ,V>, if an operation
parameter or return value is of one of these types (or of a type that
contains a member of one of these types anywhere in its object graph),
an exception will be thrown during deserialization on the receiving end.

Workaround: To work around the issue, add the following to config:

<system.runtime .serialization>
<xmlFormatter maxTypes="10000 " maxItemsInObjec tGraph="50000">
<declaredType s>
<add
type="System.Co llections.Gener ic.SortedDictio nary`2, System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<knownType
type="System.Co llections.Gener ic.SortedDictio nary`2+KeyValue PairComparer,
System, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9" >
<parameter index="0" />
<parameter index="1" />
</knownType>
<knownType
type="System.Co llections.Gener ic.GenericCompa rer`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
<knownType
type="System.Co llections.Gener ic.KeyValuePair `2, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
<parameter index="1" />
</knownType>
</add>
<add type="System.Co llections.Objec tModel.Collecti on`1,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<knownType type="System.Co llections.Gener ic.List`1,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
</add>
<add type="System.Co llections.Gener ic.SortedList`2 ,
System, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<knownType
type="System.Co llections.Gener ic.GenericCompa rer`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
</add>
<add type="System.Co llections.Gener ic.Dictionary`2 ,
mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9">
<knownType
type="System.Co llections.Gener ic.GenericEqual ityComparer`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
<knownType
type="System.Co llections.Gener ic.ObjectEquali tyComparer`1, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
</knownType>
<knownType
type="System.Co llections.Gener ic.KeyValuePair `2, mscorlib,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<parameter index="0" />
<parameter index="1" />
</knownType>
</add>
</declaredTypes>
</xmlFormatter>
</system.runtime. serialization>

Nov 22 '05 #2

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

Similar topics

3
1687
by: Jules | last post by:
So with MS looking towards Longhorn Indigo messaging, for Service based Applications Integration, its brief dalience with adoption of industry wide Web Service standards is over. This is a major dissapointment we were looking towards a more positive attitude towards interoperation with third party products. Is it not possible for MS to ensure that Indigo has some compliance with emerging Asynchronous/Message based Web Service open...
1
824
by: Marc Falesse | last post by:
Hi ! I have a problem with « Indigo », it can’t deserialize methods having a System.Collections.Specialized.NameValueCollection I’ve tried the solution of an approching issue in the « Known Issues » : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft Avalon and Indigo Beta 1 RC\WinFxKnownIssues.rtf , But it didn’t work even with the advised XML config on both sides: client and server.
2
1487
by: John Bailo | last post by:
I just went to an Indigo Roadshow meeting at the University of Washington. It was a very clear, clean informative presentation. Indigo is really good stuff -- it's a new layer that lets people build real Internet applications -- like p2p chat systems, and out of process server components addressible by http...all the 'real' stuff that it used to take COM or hardcore java to do. Now, the thing is, the Marketing Dweebs are wanting to...
0
1353
by: John Bailo | last post by:
Here's my points from the Indigo Roadshow at U. WA in Seattle last night: It’s not longer called Indigo; it’s WCF, Windows Communication Framework WFC is an amalgam of material that has previously appeared in .NET, MSMQ, COM, WSE (Web Service Extensions) 2.0. The principle of WFC is acknowledgement that programs are becoming interface and message based, and that much of that messaging that used other protocols and be done just using...
2
9545
by: Greg | last post by:
I'm writing a class in C# .... I have a collection calls Reports made up of Report objects. I'm trying to deserialize an XML file that looks like : <Reports> <Report> <Title>some title</Title> <Notes> some notes </Notes> </Report> <Report> blah blah blah </Report>
7
2855
by: Nadav | last post by:
Hi I am writing some kind of a storage system that have to deal with large amounts of data passing over the net, Now, I Wonder... traditional programming would use win32 Winsock DLL as the means of data transportation... now, indigo is the new communication layer of the CLR, - Does indigo uses Winsock internally? - Is it possible to use indigo for such a task? - I assume using indigo has it's performance penalty ( doesn't it ? - Does...
5
1266
by: Jim Robertson | last post by:
I'm trying to find Indigo early access release on MSDN subscriber downloads. I can't find it. Does anyone know where this is located? Thanks, - Jim Robertson
1
1350
by: Rasheed | last post by:
We are in the inception phase of architecting a .NET based multi tier application. Due to the .NET technology advancements, we have decided to go with .NET 2.0 beta 2 for development. One of the objectives is to implement SOA. Based on initial analysis, it has been decided (subject to change) to use web services as the communication channel. Since, Indigo would target the next generation SOA, we are not clear on what will be available...
2
11540
by: Thomas S | last post by:
Any suggestions on how to deserialize an object from one line of XML? I'm trying to deserialize multiple objects from one XML document, each object on one line of the file. The serialization is working, but when I try to read the line back into a MemoryStream, and then to deserialize from that, I get an error that the root node doesn't exist. Example XML lines: <?xml version="1.0"?><LogItem
4
4652
by: Anbu | last post by:
Hi All, I need to Deserialize the SoapService's SoapEnvelope response object. Here is the Body of the SoapEnvelope received as respone, <q1:serviceResponse xmlns:q1="urn:CallSetup"><serviceReturn xsi:type="q1:response" xmlnssi="http://www.w3.org/2001/XMLSchema-instance">ok</serviceReturn></q1:serviceResponse>
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9993
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5430
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4109
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

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.