known-types Questions

6

Solved

Is there a generally accepted way to avoid having to use KnownType attributes on WCF services? I've been doing some research, and it looks like there are two options: Data contract resolver NetDa...
Coaler asked 25/4, 2013 at 16:38

4

Solved

After reading the MSDN reference, I still have questions about when to use the KnownType attribute. I understand that the attribute communicates type information to the serializer, but when is this...
Malamud asked 2/7, 2010 at 17:45

4

Solved

We have an abstract class that is the base for a number of different requests we send over a WCF service. It's an ugly heinous hack that every time we add a new request we have to remember to add t...
Dreary asked 7/6, 2011 at 14:3

5

Solved

My client/server application is using WCF for communication, which has been great. However one shortcoming of the current architecture is that I must use known type configuration for certain transm...
Walhalla asked 21/4, 2009 at 8:12

2

Solved

please check the below example namespace GServices { [ServiceKnownType(typeof(SearchType))] [ServiceContract(SessionMode = SessionMode.Allowed)] public interface ITest { [OperationContract] ...
Glottic asked 5/7, 2012 at 7:41

3

Solved

I develop (rewrite onto WCF) a file parsing web service accepting string[] and returning ISection[] but actually this is a set of nested interfaces: namespace Project.Contracts // Project.Contract...
Thallus asked 30/6, 2012 at 8:26

2

Solved

I'm having the following error in my wcf client. NetDispatcherFaultException was unhandled. The formatter threw an exception while trying to deserialize the message: There was an error while ...
Splutter asked 23/8, 2011 at 11:44

2

Solved

I'm trying to specify a known type in my config, but I'm having problems with the fact that it derives from Object. I can make it work specifying the known type via attribute. But in this case I ne...
Bolanos asked 30/6, 2010 at 16:19

1

I have a service that returns an array of animal but the list can contain cats, dogs, etc, which all extend animal. I know I need to use either the KnownType or ServiceKnownType attribute, and on t...
Penner asked 16/3, 2010 at 14:39

1

I am having difficulty understanding how to exactly go about adding known types; for WCF, from a configuration file that is external to my wcf. I found an example of how to set the configuration fi...
Schug asked 9/3, 2010 at 14:0

1

Solved

I've read many articles about known types and i belive my example should work. But it doesn't. I'm getting the following exception on deserialization and don't understand why: Error in line 1 posi...
Whitethorn asked 24/7, 2009 at 13:13

2

Solved

I have a type, let's call it Data<TKey>. I also have a WCF service contract that accepts a type (lets call it Wrapper) with a property of type Object (for reasons I won't go into, this isn't ...
Leet asked 10/6, 2009 at 16:44
1

© 2022 - 2024 — McMap. All rights reserved.