Asp.net 无法在.net 4.0网站中加载Sybase.AdoNet4.AseClient
当我在bin文件夹中使用新的64位dll时,出现上述错误。您能从堆栈跟踪中建议可能的错误吗?堆栈跟踪中最重要的消息是: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
文件夹的程序集,以及添加的任何pdb。如果旧的.dll
嵌套在子目录中的/bin
文件夹中,请确保将其删除web.config
或machine.config
以查看是否有任何引用可能包含旧版本信息堆栈跟踪中最重要的消息是:
定位的程序集的清单定义与程序集引用不匹配。
这表明问题可能是程序集引用不匹配。要解决此问题,应执行以下操作:
/bin
文件夹的程序集,以及添加的任何pdb。如果旧的.dll
嵌套在子目录中的/bin
文件夹中,请确保将其删除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