(Type your message here)
I wrote a web service which takes an object of type System.type . I don't get any exceptions when building the application. But at the start page, which is the default page listing all the services,
I get the following error.

The property 'MemberType' on type 'System.Reflection.MemberInfo' cannot be serialized because it is decorated with declarative security permission attributes. Consider using imperative asserts or demands in the property accessors.

Can anyone tell me how to solve this problem?

--------------------------------
From: Gayan Sanjeewa

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>q+EUgBvLw0iikgoYEO1ECA==</Id>