Trust Level Once you generate the debug version, you should change the trust level for your web application to Full while debugging the custom action. The trust level is specified in the web.config. Find the trust element in your web.config and change the level to Full. <trust level="Full" originUrl="" />