I have class B
that extends A
, and because it is located in another assembly I cannot simply add [KnownType(typeof(B))]
to A
to get it to serialize because this requires a circular dependency. I tried doing this in the config but it doesn't work for some reason.
Now I am trying the method described here
Generally accepted way to avoid KnownType attribute for every derived class
(I load B's assembly instead of GetExecutingAssembly) When I try to update service references I get The URI prefix is not recognized. Metadata contains a reference that cannot be resolved..."
What might be the problem here?