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

安全性异常

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

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

源错误:


行 118:              <td height="30" colspan="4" align="center">
行 119:              
行 120:             <webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="Center"
行 121:        showcustominfosection="Left" width="95%" meta:resourceKey="AspNetPager1" style="font-size:12px" InputBoxStyle="width:19px" onpagechanged="AspNetPager1_PageChanged" 
行 122:        CustomInfoHTML="一共有<b><font color='red'>%RecordCount%</font></b>条记录 当前页<font color='red'><b>%CurrentPageIndex%/%PageCount%</b></font>  " AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" CustomInfoStyle="FONT-SIZE: 12px" PageSize="12"></webdiyer:aspnetpager>

源文件: d:\freehost\gxyxyy8com\web\people.aspx    行: 120

堆栈跟踪:


[SecurityException: 该程序集不支持部分受信任的调用方。]
   ASP.people_aspx.__BuildControlAspNetPager1() in d:\freehost\gxyxyy8com\web\people.aspx:120
   ASP.people_aspx.__BuildControlform1() in d:\freehost\gxyxyy8com\web\people.aspx:26
   ASP.people_aspx.__BuildControlTree(people_aspx __ctrl) in d:\freehost\gxyxyy8com\web\people.aspx:1
   ASP.people_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\97245644\4fcea86a\App_Web_dmvqgkee.6.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +48
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +22
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.people_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\97245644\4fcea86a\App_Web_dmvqgkee.6.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3282.0