dll文件放到bin目录下吗?我有一个ORACLE的数据库BDP连接,提示要BORLAND.DATA.ORACLE.DLL文件上,可是在References里没有该Dll文件,而且拷上去提示如下错误:
Server Error in '/test' Application.
--------------------------------------------------------------------------------
The located assembly's manifest definition with name 'Borland.Data.Oracle' does not match the assembly reference.
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.IO.FileLoadException: The located assembly's manifest definition with name 'Borland.Data.Oracle' does not match the assembly reference.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Borland.Data.Oracle' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = Borland.Data.Oracle, Version=2.0.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b
(Fully-specified)
LOG: Appbase = file:///E:/nettest/WebApplication1
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Borland.Data.Oracle, Version=2.0.0.0, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/9f4ae2da/444ef3b9/Borland.Data.Oracle.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/test/9f4ae2da/444ef3b9/Borland.Data.Oracle/Borland.Data.Oracle.DLL.
LOG: Attempting download of new URL file:///E:/nettest/WebApplication1/bin/Borland.Data.Oracle.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
Stack Trace:
[FileLoadException: The located assembly's manifest definition with name 'Borland.Data.Oracle' does not match the assembly reference.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark) +68
System.Reflection.Assembly.Load(String assemblyString) +19
Borland.Data.Provider.BdpConnection.e() +75
Borland.Data.Provider.BdpConnection.f() +42
Borland.Data.Provider.BdpCommand.set_Connection(BdpConnection value) +45
WebApplication1.WebForm1.InitializeComponent() in f:\net\WebApplication1\WebForm1.aspx.cs:157
WebApplication1.WebForm1.OnInit(EventArgs e) in f:\net\WebApplication1\WebForm1.aspx.cs:44
System.Web.UI.Control.InitRecursive(Control namingContainer) +240
System.Web.UI.Page.ProcessRequestMain() +189