Searching for this error on Google and checking Stackoverflow, some users reported that restarting IIS resolved the issue. Others had some software installed on the server which was causing this. The error is coming from .Net and not from Kentico directly. I would recommend checking the environment setup. And as mentioned by Brenden, the medium vs. full trust environment could be the cause too (Kentico can be run in full trust environment only).