I am trying to calculate normal map and bump map of some images. In order to do this, I am using Craig's Utility Library. However when I try to create bump map I am getting an exception saying
"VerificationException was unhandled : Operation could destabilize the runtime".
How can I solve this? The code throws exception in second line (it throws the same exception for normal map too, but this one comes first):
BumpMap bumpMap = new BumpMap();
pic = bumpMap.Create(pic);