“/”应用程序中的服务器错误。
Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息: System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. 试图加载格式不正确的程序。源错误:执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。程序集加载跟踪: 下列信息有助于确定程序集“System.Data.SQLite”无法加载的原因。WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

解决方案 »

  1.   

    是这样的,我在本机上正常,当我往服务器上布置时,System.Data.SQLite.dll  不能正常的被引用出现这个问题。有什么方法纠正吗?
      

  2.   

    将System.Data.SQLite.dll这个文件找到放到你的网站的bin目录下,如果不存在bin目录则先创建一个然后再拷。
      

  3.   

    这个文件现在就在bin目录下。
      

  4.   

    您是指什么版本..,我服务器是window server 2003(64).本机是xp,是.net版本问题吗。还是 ?
      

  5.   

    楼主,解决没有,我同样遇到这个问题,我在win7下能正常运行,到用户在xp系统上使用时就出现上面的错误!!![email protected]