关于VS2003做的TreeView控件在asp.net2.0运行的错误问题
个项目是用VS2003开发的,其中用到了TreeView控件,在.net framework1.1服务器运行正常,转到国外的.net framework 2.0英文版本服务器运行就出现如下错误:
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 36: <td width="100%" valign="middle" class="body1">
Line 37: <P>
Line 38: <iewc1:TreeView id="TreeView1" runat="server" Height="100%" width="100%" ShowLines="False" SelectExpands="True"></iewc1:TreeView>
Line 39: </P>
Line 40: <DIV>
Source File: e:\kunden\homepages\24\d210201743\AdminOfCHNet\left.aspx Line: 38
Stack Trace:
[SecurityException: That assembly does not allow partially trusted callers.]
ASP.adminofchnet_left_aspx.__BuildControlTreeView1() in e:\kunden\homepages\24\d210201743\AdminOfCHNet\left.aspx:38
ASP.adminofchnet_left_aspx.__BuildControlTree(adminofchnet_left_aspx __ctrl) in e:\kunden\homepages\24\d210201743\AdminOfCHNet\left.aspx:1
ASP.adminofchnet_left_aspx.FrameworkInitialize() in App_Web_fnjs-wkf.20.cs:0
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +40
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.adminofchnet_left_aspx.ProcessRequest(HttpContext context) in App_Web_fnjs-wkf.20.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +