先说明一下情况:
在XP上做了用OWC的报表,移植到Server2003上时,运行提示报错:Configuraton Error.具体的报错信息如下:
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. 系统找不到指定的文件。
Source Error:
Line 19: -->
Line 20: <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
Line 21: <compilation debug="false" defaultLanguage="c#">
Line 22: <assemblies>
Line 23: <add assembly="System.Data.OracleClient, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
\web.config Line: 21
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
--------------------------------------------------------------------------------
Office 2003 PIA(Primary Interop Assemblies)的问题!
http://www.microsoft.com/china/msdn/library/office/office/OfficePrIntopAssFAQ.mspx