I have en error when migrating my project from Microsoft Windows Server 2003 Enterprise to Microsoft Windows Server 2003 R2 Enterprise x64 Edition.
The main problem is with connectiong to OWC11.
When i try to request the ChartSpaceClass I'm recieving the following error (Platform target: Any CPU):
Retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154.
When i try to recompile my solution using Platform target: x86 I'm recieving following error:
Could not load file or assembly 'BA.Application.Utils' or one of its dependencies. An attempt was made to load a program with an incorrect format. (C:\inetpub\wwwroot\web.config line 132)
Source Error:
<httpModules>
<add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
...
</httpModules>
And when i try to recompile my solution using Platform target: x64 I'm recieving following error (compilation error):
Attempted to load a 64-bit assembly on a 32-bit platform. Use ReflectionOnlyLoad() instead of trying to load for reflection purposes.
Is ther any way to solve this problem? (Or can i specify to the web project compilation mode = x86 platform?)
Server Configuration:
- Windows Server 2003 R2 Enterprise x64 Edition
- Microsoft Office 2003 (11.5612.5606)
- Microsoft .NET Framework Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.210
- Oracle Client 10g (x64 version)