Asp.net 2.0 trust level and binary serialization

I have a new app to put online.

This one uses binary serialization. And asp.net 2.0 is throwing the following error:

“Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0…”

Is it possible to grant permission to SecurityPermission in the modified trust level file?

Because otherwise all binary serializations, which is essentially just reading and writing data on disk, will not be possible.

I found an alternative solution. So this one is not so important anymore.

Hello,

I am going to be looking into this today as well.