You should tyr to elevate the Trust level to Full in the web.config <trust level="Full" originUrl="" />