Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 无法在.net 4.0网站中加载Sybase.AdoNet4.AseClient_Asp.net_C# 4.0_Iis_Sap Ase - Fatal编程技术网

Asp.net 无法在.net 4.0网站中加载Sybase.AdoNet4.AseClient

Asp.net 无法在.net 4.0网站中加载Sybase.AdoNet4.AseClient,asp.net,c#-4.0,iis,sap-ase,Asp.net,C# 4.0,Iis,Sap Ase,当我在bin文件夹中使用新的64位dll时,出现上述错误。您能从堆栈跟踪中建议可能的错误吗?堆栈跟踪中最重要的消息是: 定位的程序集的清单定义与程序集引用不匹配。 这表明问题可能是程序集引用不匹配。要解决此问题,应执行以下操作: 删除直接放入/bin文件夹的程序集,以及添加的任何pdb。如果旧的.dll嵌套在子目录中的/bin文件夹中,请确保将其删除 在VS中,将此程序集添加为引用并重新编译 如果这不能解决您的问题,请同时检查web.config或machine.config以查看是否有任何引用

当我在bin文件夹中使用新的64位dll时,出现上述错误。您能从堆栈跟踪中建议可能的错误吗?

堆栈跟踪中最重要的消息是:
定位的程序集的清单定义与程序集引用不匹配。
这表明问题可能是程序集引用不匹配。要解决此问题,应执行以下操作:

  • 删除直接放入
    /bin
    文件夹的程序集,以及添加的任何pdb。如果旧的
    .dll
    嵌套在子目录中的
    /bin
    文件夹中,请确保将其删除
  • 在VS中,将此程序集添加为引用并重新编译
  • 如果这不能解决您的问题,请同时检查
    web.config
    machine.config
    以查看是否有任何引用可能包含旧版本信息

  • 堆栈跟踪中最重要的消息是:
    定位的程序集的清单定义与程序集引用不匹配。
    这表明问题可能是程序集引用不匹配。要解决此问题,应执行以下操作:

  • 删除直接放入
    /bin
    文件夹的程序集,以及添加的任何pdb。如果旧的
    .dll
    嵌套在子目录中的
    /bin
    文件夹中,请确保将其删除
  • 在VS中,将此程序集添加为引用并重新编译
  • 如果这不能解决您的问题,请同时检查
    web.config
    machine.config
    以查看是否有任何引用可能包含旧版本信息
  • Unable to connect to database. xxx.db.ConnectionException: DBServer::GetConnection: mscorlib: Could not load file or assembly 'Sybase.AdoNet4.AseClient, Version=4.157.1300.0, Culture=neutral' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040): at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at