WEB开发网
开发学院软件开发Delphi ORLAND.DATA.ORACLE不匹配错误 阅读

ORLAND.DATA.ORACLE不匹配错误

 2006-02-04 14:04:24 来源:WEB开发网   
核心提示: 我在应用DELPHI2005开发.NET WEB程序时碰到这样的问题,希望网上高手能给予解答: 我有两台WEB服务器分别装有Oracle8.1.5CLIENT,可是在一台服务器上运行通过的DELPHI2005项目程序(通过BDPconnection连接到远程ORACLE数据库并显示某一个表的内容),ORLAND.D
 

我在应用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服务器上,要拷哪些文件,分别放在什么目录中

Tags:ORLAND DATA ORACLE

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接