在开发环境下,读写ACCESS数据库没有问题;但是我将编译后的文件,放到IIS服务器上后,只能读ACCESS数据库了,所有写操作一概出错。这到底是为什么呢?谁能告诉我啊~!!!!

解决方案 »

  1.   

    系统的错误信息是Operation must use an updateable query. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
      

  2.   

    可能是权限问题: sql 数据库 角色 和登录名 密码 难道和本地机是一摸一样的?
      

  3.   

    在Access数据库文件上点右键,选择属性
      

  4.   

    谢谢大家~!问题已经解决~!是权限的问题。1,数据库文件的属性的安全中的权限需要进行分配。
    2,IIS中的用户也需要进行配置。