.NET Framework Bookmark and Share   
 index > .NET Remoting and Runtime Serialization > Problem in Automatic Deserialization of Low typeFilterLevel
 

Problem in Automatic Deserialization of Low typeFilterLevel

Hi All

 

            I’m developing client/server windows application, using server activated remoting in v1.1.

 

All of my assemblies are signed with a strong name.

In one DLL I’m having a class (say X) which is marked with [Serializable], coz this is passed as parameter from client to server.

 

When I run the application and a method in server by passing an object of type X its throwing an error saying


"Because of security restrictions, the type X cannot be accessed."


 I'm getting this error only when my assemblies are signed with strong name


To solve this I’ve added typeFilterLevel="Full" in both client and server remoting configuration files, It works fine. So, basically it’s a problem of “Automatic Deserializationâ€? it requires  typeFilterLevel="Full". But when I see the MSDN document for “Automatic Deserialization in .NET Remotingâ€?the criteria for typeFilterLevel = “Lowâ€?is matching for my scenario but still it’s not automatically deserializing why?

 

One of the Criteria for “Lowâ€?typeFilterLevel  is :

Custom types that have strong names and live in an assembly that is not marked with the AllowPartiallyTrustedCallersAttribute attribute.

 

Which is same as my scenario, but why it’s not working ?

Thnaks & Regards
Karthikeyan

Karthikeyan

That may be a doc bug.

I am looking into it.

douglasp

Hi Karthikeyan,

Did you find solution to your problem? If not is it possible for you to share your code?

-Gagan

Gagan Gupta

That may be a doc bug.

I am looking into it.

douglasp

You can use google to search for other answers

Custom Search

More Threads

• Error occurs while Serializing object
• Access to the activated object from Main thread
• how to send SMS using c#.net ?
• How can I gen connection string in config file from server?
• OnSerializing Event
• How many clients
• .Net Remoting : Free Port
• Error Serialize Hashtable
• Unable to load RDLC report
• Remoting... how to make a chat system.