程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> Delphi >> ORLAND.DATA.ORACLE不匹配錯誤

ORLAND.DATA.ORACLE不匹配錯誤

編輯:Delphi

  我在應用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:WINNTMicrosoft.NetFrameworkv1.1.4322ASPnet.config).
  LOG: Using Machine configuration file from C:WINNTMicrosoft.NetFrameworkv1.1.4322configMachine.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: etWebApplication1WebForm1.ASPx.cs:157
     WebApplication1.WebForm1.OnInit(EventArgs e) in f: etWebApplication1WebForm1.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服務器上,要拷哪些文件,分別放在什麼目錄中

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved