Server Error in '/' Application.

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: That assembly does not allow partially trusted callers.

Source Error:


Line 20: </script>
Line 21: <div class="dateBoxCalendar" >
Line 22: <ew:calendarpopup id="datePicker" runat="server" Nullable="True" Width="75px" ButtonStyle-CssClass="invisible">
Line 23: 	<WeekdayStyle CssClass="WeekdayStyle"></WeekdayStyle>
Line 24: 	<MonthHeaderStyle CssClass="MonthHeaderStyle"></MonthHeaderStyle>

Source File: e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\Calendar.ascx    Line: 22

Stack Trace:


[SecurityException: That assembly does not allow partially trusted callers.]
   ASP.Calendar.__BuildControldatePicker() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\Calendar.ascx:22
   ASP.Calendar.__BuildControlTree(Calendar __ctrl) in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\Calendar.ascx:1
   ASP.Calendar.FrameworkInitialize() in App_Web_qch1lmkx.0.cs:0
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.UserControl.InitializeAsUserControl(Page page) +14
   ASP.cmscontrols_userregistration_ascx.__BuildControldtArriveDate() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\UserRegistration.ascx:155
   ASP.cmscontrols_userregistration_ascx.__BuildControleditorPanel() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\UserRegistration.ascx:72
   ASP.cmscontrols_userregistration_ascx.__BuildControlTree(cmscontrols_userregistration_ascx __ctrl) in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\UserRegistration.ascx:1
   ASP.cmscontrols_userregistration_ascx.FrameworkInitialize() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\CMSControls\UserRegistration.ascx.cs:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.UserControl.InitializeAsUserControl(Page page) +14
   ASP.myaccount_aspx.__BuildControlUserRegistration1() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\myaccount.aspx:30
   ASP.myaccount_aspx.__BuildControlContent1(Control __ctrl) in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\myaccount.aspx:5
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   ASP.masterhome_master.__BuildControlcphContent() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\MasterHOME.master:26
   ASP.masterhome_master.__BuildControlContent5(Control __ctrl) in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\MasterHOME.master:25
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   ASP.masterfirst_master.__BuildControlcphContent() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\MasterFirst.master:45
   ASP.masterfirst_master.__BuildControlform1() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\MasterFirst.master:32
   ASP.masterfirst_master.__BuildControlTree(masterfirst_master __ctrl) in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\MasterFirst.master:1
   ASP.masterfirst_master.FrameworkInitialize() in e:\websites\zzeraxo1\dalmiresorts.com\wwwroot\MasterFirst.master.cs:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8774255
   System.Web.UI.MasterPage.get_Master() +39
   System.Web.UI.MasterPage.ApplyMasterRecursive(MasterPage master, IList appliedMasterFilePaths) +18
   System.Web.UI.Page.ApplyMasterPage() +8805725
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.myaccount_aspx.ProcessRequest(HttpContext context) in App_Web_myaccount.aspx.cdcab7d2.xjmzw7if.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974