这是问题出问题的网站:http://www.longpai.com.cn
用的是asp.net 2.0  和access数据库 ,在本地测试一切正常,但是放到服务器上
就出现这样的问题.求高手指教.

解决方案 »

  1.   

    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: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.你的错误说的很清楚了,你调用的oledb 没有权限在服务器上
      

  2.   

    你在服务器上调用的oledb 没有权限
      

  3.   

    你的是免费试用的吧?   我也遇到过类似的问题,用的是广州的腾翼网的虚拟主机,程序在本地没有问题,传上去就问题一大堆,最后出现了"操作需要一个可更新的查询",我的是ACCESS数据库,我知道就是权限的问题,所以在提供的控制面板里对该文件夹甚至整个站点都设置了可写的权限,但还是没有用!!
    难道一切是因为"免费试用"?
      

  4.   

    你是去掉了"只读"前面的钩,还是在"安全"选项卡中钩选了 Iusr_计算机名 用户的写权限?
    另外,操作access除了写权限外,还要修改权限.(对文件夹的)