System.Security.SecurityException: 请求“System.Data.OleDb.OleDbPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型的权限已失败。 在 System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) 在 System.Security.CodeAccessSecurityEngine.Check(PermissionSet permSet, StackCrawlMark& stackMark) 在 System.Security.PermissionSet.Demand() 在 System.Data.Common.DbConnectionOptions.DemandPermission() 在 System.Data.OleDb.OleDbConnection.PermissionDemand() 在 System.Data.OleDb.OleDbConnectionFactory.PermissionDemand(DbConnection outerConnection) 在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 在 System.Data.OleDb.OleDbConnection.Open() 在 Maticsoft.DBUtility.DbHelperOleDb.Query(String SQLString) 位置 E:\yijie_xiangmu\wuyinhu\usbhb.com\sanceng.szjzw.com.cn\DBUtility\DbHelperOleDb.cs:行号 279 在 Cenpic.DAL.Type.GetList(String strWhere) 位置 E:\yijie_xiangmu\wuyinhu\usbhb.com\sanceng.szjzw.com.cn\DAL\Type.cs:行号 310 在 Cenpic.BLL.Type.GetList(String strWhere) 位置 E:\yijie_xiangmu\wuyinhu\usbhb.com\sanceng.szjzw.com.cn\Bll\Type.cs:行号 104 在 Product.bindleixing() 位置 d:\freehost\ao2025shte8\web\product.aspx.cs:行号 40 在 Product.Page_Load(Object sender, EventArgs e) 位置 d:\freehost\ao2025shte8\web\product.aspx.cs:行号 21 失败的操作是: Demand 失败的第一个权限的类型是: System.Data.OleDb.OleDbPermission 失败的程序集的区域是: MyComputer数据为空或非法操作System.Security.SecurityException: 请求“System.Data.OleDb.OleDbPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”类型的权限已失败。 在 System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) 在 System.Security.CodeAccessSecurityEngine.Check(PermissionSet permSet, StackCrawlMark& stackMark) 在 System.Security.PermissionSet.Demand() 在 System.Data.Common.DbConnectionOptions.DemandPermission() 在 System.Data.OleDb.OleDbConnection.PermissionDemand() 在 System.Data.OleDb.OleDbConnectionFactory.PermissionDemand(DbConnection outerConnection) 在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) 在 System.Data.OleDb.OleDbConnection.Open() 在 Maticsoft.DBUtility.DbHelperOleDb.Query(String SQLString) 位置 E:\yijie_xiangmu\wuyinhu\usbhb.com\sanceng.szjzw.com.cn\DBUtility\DbHelperOleDb.cs:行号 279 在 Product.getCount() 位置 d:\freehost\ao2025shte8\web\product.aspx.cs:行号 145 失败的操作是: Demand 失败的第一个权限的类型是: System.Data.OleDb.OleDbPermission 失败的程序集的区域是: MyComputer