Friday, October 8, 2010

Operation could destabilize the runtime

This Friday, I had the most scariest exception ever:

"System.Security.VerificationException: Operation could destabilize the runtime.”

Sounds like all hell could break loose. How did I got this exception?

I was trying the Entity Framework integration for IBM DB2 and I was trying to load an entity which had a timestamp column in the database. The issue was caused by the Entity Framework query translator which couldn’t understand how to map this database type could be mapped to a datetime in code.

A more meaningful exception message would have been nice. It took me a lot of time to figure out the reason for this error.

No comments: