Hi MarjaR,
Are you using <trust level="Medium"/> in web.config? if yes, try change it to the higher level, it should work. The development team working on the .net 4.5 compatibility issue already.
Regards,
Ken