View Complete Post
Report Server Logfile error
System.BadImageFormatException: Could not load file or assembly file or one of its dependencies.
An attempt was made to load a program with an incorrect format
when i want to work with External cutom code (Config in rssrvpolicy.config file)
I'm Working in 64 bit computre , net framework 4
i tried to compile the dll file with 32 bit i'm geting the same error
I am using Visual Studio 2010 Premium installed on Windows 2008 HPC with service pack 2. I am attempting to use the Service Configuration Editor (SvcConfigEditor.exe with File and Product version 4.0.30319.1) to create a new service configuration.
1. I opened the web.config file for the WCF service
2. I clicked the link "Create a New Service..." to bring up the "New Service Element Wizard"
3. I browsed to the WCF service \bin folder and selected the DLL. I received the error dialog box containing the message:
Could not load file or assembly 'file:///d:\...\MyService.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
4. I made sure that the WCF service and all referenced DLLs are configured for the same Target CPU of x86.
Below is the FUSLOG viewer entry when this error occurred:
*** Assembly Binder Log Entry (5/4/2010 @ 5:54:16 PM) ***
The operation failed.
Bind result: hr = 0x8007000b. An attempt was made to load a program with an incorrect format.
Assembly manager loaded from: D:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable D:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\SvcConfigEditor.exe
--- A detailed error log follows.
=== Pre-bind state information =
Our application require Oracle client and it will fetch the data from the server, we Installed Oracle 10g clientÃÂ 64-bit on win2k3-64bit machine and it able to fetch the data from the database thru console application, same logic was implemented in web application and it is not able to fetch the data. Below error message we are getting .
If anyone have faced similar issue please help me to resolve.
I refered this post as wellÃÂ http://forums.msdn.microsoft.com/en-US/netfx64bit/thread/3f00bf30-2d81-4e6c-9bcc-16e06ebf46eb/ÃÂ but thisÃÂ was also not solved my problemIs there anything to do with IIS32 bit vs IIS64bit mode??ÃÂ
Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed
I am getting a "Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle
client components installed."
I have a main ASP.NET project which is 64 bit(set to Auto though) and another oracle database project 64 bit(set to Auto). I am getting the above error in "Connection.open()'
in the oracle database project. I am using System.Data.Oracle client, the 64 bit version-2.0.50727.5420
Edit.I thought I would mention that I am using the latest Instant Client v 126.96.36.199 from the Oracle to run my program.
....I also tried the ODAC provider from Oracle. Same problem.
Also the oracle database project seems to run fine in x64 bit mode by itself without any problems. The way i verified that it was running in 64 bit mode was I just looked into task manager while the Oracle database project was executing and there was no *32
in the name of the project. All the frame references to this project are already 64 bit. It seems like the issue is the ASP.NET project which is at 3.5
Meanwhile below are things i did to try resolve the issue .