放在本地时都没问题,但是一放到测试服务器上就有这个问题,所有权限都给了。哪位大侠遇到这类问题帮忙给个解决方案用用:
错误
Server Error in '/' Application.
--------------------------------------------------------------------------------Unable to open the database file
unable to open database file 
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.SQLite.SQLiteException: Unable to open the database file
unable to open database fileSource Error: 
Line 72:             model.Content = fckContent.Value;
Line 73:             model.Location = Type;
Line 74:             BLL.BllBase<Model.T_About>.Update(model);
Line 75: 
Line 76:             MessageBox.ShowAndDirect(this, "更新成功", "AboutList.aspx?CategoryName=" + CategoryName + "&Type=" + Type);
 

解决方案 »

  1.   

    你这个问题,一定是登录用户没有写权限。
    注意,一定要是aspnet用户要有权限的。
    有时候,在网上租用的空间,就是这个样子。
    前阵子遇到过。
    空间技术维护不给开权限,怕中毒。
    直接退货,就给开了。
      

  2.   

    我这是公司测试服务器,everyone的权限都设完全控制了。但是还是一样的问题,郁闷了
      

  3.   

    Unable to open the database file这个可能是连接字符串问题。还有就是权限问题,在iis里设置。
      

  4.   

    你读的时候是不是用DataReader,又没有关闭?SQLite是单线程的,一旦有一个线程访问,就会Lock,访问完下一个线程才能访问