System.Security.VerificationException: Operation could destabilize the runtime

Posted by Rigobert Song on Stack Overflow See other posts from Stack Overflow or by Rigobert Song
Published on 2010-06-02T12:41:50Z Indexed on 2010/06/02 12:54 UTC
Read the original article Hit count: 715

I have a web service which is queried using linq to sql but returns an array of objects.

I keep getting the following error:

System.Security.VerificationException: Operation could destabilize the runtime

When I run a method that uses a linq statement to return an array I get this error, but only on my test server, which is windows server 2008.

Everything works fine in my win 7 machine.

The project is a .net 3.5.

Any ideas what the problem might be?

Thanks

UPDATE:

My linq queries return IQueryable.

© Stack Overflow or respective owner

Related posts about visual-studio-2008

Related posts about web-services