AjaxControlToolkit for ASP.NET 4 throws security Exception in Medium Trust Hosting such as Godaddy
Comments: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request failed. Source Error: Line 120: <!-- Html Content --> Line 121: <label for="<%= this.htmlEditor.ClientID %>" title="Html Content" class="label">Page HTML:</label> Line 122: <ac:HtmlEditor Line 123: ID="htmlEditor" Line 124: CssClass="~/includes/css/editor.css" Stack Trace: [SecurityException: Request failed.] AjaxControlToolkit.HTMLEditor.EditPanel.set_ActiveMode(ActiveModeType value) +0 AjaxControlToolkit.HTMLEditor.Editor.set_ActiveMode(ActiveModeType value) +56 ASP.pagecontent_modifypagecontents_aspx.__BuildControlhtmlEditor() in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\PageContent\ModifyPageContents.aspx:122 ASP.pagecontent_modifypagecontents_aspx.__BuildControlMainContent(Control __ctrl) in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\PageContent\ModifyPageContents.aspx:5 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12 System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +87 ASP.site_master.__BuildControlMainContentPlaceHolder() in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\Site.master:244 ASP.site_master.__BuildControlfrmDefaultForm() in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\Site.master:63 ASP.site_master.__BuildControlTree(site_master __ctrl) in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\Site.master:1 ASP.site_master.FrameworkInitialize() in App_Web_4tynk2mg.0.cs:0 System.Web.UI.UserControl.InitializeAsUserControlInternal() +35 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8963266 System.Web.UI.Page.get_Master() +54 System.Web.UI.Page.ApplyMasterPage() +15 System.Web.UI.Page.PerformPreInit() +45 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253 System.Web.UI.Page.ProcessRequest() +78 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.pagecontent_modifypagecontents_aspx.ProcessRequest(HttpContext context) in App_Web_aqb552e0.1.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Comments: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request failed. Source Error: Line 120: <!-- Html Content --> Line 121: <label for="<%= this.htmlEditor.ClientID %>" title="Html Content" class="label">Page HTML:</label> Line 122: <ac:HtmlEditor Line 123: ID="htmlEditor" Line 124: CssClass="~/includes/css/editor.css" Stack Trace: [SecurityException: Request failed.] AjaxControlToolkit.HTMLEditor.EditPanel.set_ActiveMode(ActiveModeType value) +0 AjaxControlToolkit.HTMLEditor.Editor.set_ActiveMode(ActiveModeType value) +56 ASP.pagecontent_modifypagecontents_aspx.__BuildControlhtmlEditor() in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\PageContent\ModifyPageContents.aspx:122 ASP.pagecontent_modifypagecontents_aspx.__BuildControlMainContent(Control __ctrl) in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\PageContent\ModifyPageContents.aspx:5 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12 System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +87 ASP.site_master.__BuildControlMainContentPlaceHolder() in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\Site.master:244 ASP.site_master.__BuildControlfrmDefaultForm() in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\Site.master:63 ASP.site_master.__BuildControlTree(site_master __ctrl) in \\fs2-n01\stor1wc2dfw1\470870\722236\www.starstainless.com.au\web\content\admin\Site.master:1 ASP.site_master.FrameworkInitialize() in App_Web_4tynk2mg.0.cs:0 System.Web.UI.UserControl.InitializeAsUserControlInternal() +35 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8963266 System.Web.UI.Page.get_Master() +54 System.Web.UI.Page.ApplyMasterPage() +15 System.Web.UI.Page.PerformPreInit() +45 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253 System.Web.UI.Page.ProcessRequest() +78 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.pagecontent_modifypagecontents_aspx.ProcessRequest(HttpContext context) in App_Web_aqb552e0.1.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272