ORLAND.DATA.ORACLE不匹配错误?

类别:Delphi 点击:0 评论:0 推荐:

我在应用DELPHI2005开发.NET WEB程序时碰到这样的问题,希望网上高手能给予解答:
        我有两台WEB服务器分别装有ORACLE8.1.5CLIENT,可是在一台服务器上运行通过的DELPHI2005项目程序(通过BDPconnection连接到远程ORACLE数据库并显示某一个表的内容),拷到另一台服务器上运行,就会出BORLAND.DATA.ORACLE不匹配错误?具体出错信息为
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
我已经把Borland.Data.Provider.dll、Borland.Data.Oracle.dll、Borland.Data.Web.dll、Borland.Data.Common.dll文件都拷到虚拟目录的BIN目录中,两台WEB服务器的环境分别是:运行成功的服务器:WIN2003企业版SP1+DELPHI2005SP2;运行不成功的服务器:WINXP个人版,两台服务器上都已安装了相应的.NET 补丁。
请检查问题出在什么地方?另请说明一下:在本机上调试通过的DELPHI2005WEB应用如何发布到其它WEB服务器上,要拷哪些文件,分别放在什么目录中

本文地址:http://com.8s8s.com/it/it4170.htm