“/”应用程序中的服务器错误。

安全性异常

说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。

异常详细信息: System.Security.SecurityException: 该程序集不支持部分受信任的调用方。

源错误:


行 120:   <div class="under">
行 121:        <form runat="server" id="form1">
行 122:            <webdiyer:AspNetPager ID="pager" runat="server"
行 123:                OnPageChanged="pager_PageChanged" AlwaysShow="true" PageIndexBoxType="DropDownList" ShowCustomInfoSection="Never"
行 124:                CustomInfoHTML="The current  <font color='red'><b>%CurrentPageIndex%</b></font> /  %PageCount%"

源文件: d:\virtualhost\localuser\host4207797\www\Aspx\product.aspx    行: 122

堆栈跟踪:


[SecurityException: 该程序集不支持部分受信任的调用方。]
   ASP.aspx_product_aspx.__BuildControlpager() in d:\virtualhost\localuser\host4207797\www\Aspx\product.aspx:122
   ASP.aspx_product_aspx.__BuildControlform1() in d:\virtualhost\localuser\host4207797\www\Aspx\product.aspx:121
   ASP.aspx_product_aspx.__BuildControlContent3(Control __ctrl) in d:\virtualhost\localuser\host4207797\www\Aspx\product.aspx:73
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   ASP.aspx_fp_master.__BuildControlnote() in d:\virtualhost\localuser\host4207797\www\Aspx\FP.Master:165
   ASP.aspx_fp_master.__BuildControlTree(aspx_fp_master __ctrl) in d:\virtualhost\localuser\host4207797\www\Aspx\FP.Master:1
   ASP.aspx_fp_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3e3dba90\c7ca9c36\App_Web_is9cvtlq.2.cs:0
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8773087
   System.Web.UI.Page.get_Master() +51
   System.Web.UI.Page.ApplyMasterPage() +15
   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.aspx_product_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3e3dba90\c7ca9c36\App_Web_h93vn9-g.6.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


版本信息: Microsoft .NET Framework 版本:2.0.50727.9055; ASP.NET 版本:2.0.50727.9051