Using VS2005 created a web site with backend database Oracle 11g. It is running fine on development machine which is 32 Bit O/S. I try to mount this code on 64-Bit O/S i.e Windows Server 2008 R2 enterprise. Oracle Server & Client is installed on that machine
which is compatable with 64-Bit.
VS2005 Professional Edition is installed with Framework SP2.
"Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format"
Global Assembly Cache have following entry for the Oracle.DataAccess.dll.
Trying to build my website using VS2005 ( developed on 32-Bit O/S) into 64-Bit O/S (Windows Server 2008 R2 Professional Edition) following error occured.
Error 45 Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. F:\EKO_Nxt\web.config 78
I installed Oracle client into 64-Bit which is compatable with 64-Bit .
================================================
IIS - Enable 32bit Application=true;
I publish my website at 32-Bit O/S. Publish code put into 64-Bit O/S and run web site following error occured.
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = IIS APPPOOL\EkoPublish
LOG: DisplayName = Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342
(Fully-specified)
LOG: Appbase = file:///F:/EKOPublish/
LOG: Initial PrivatePath = F:\EKOPublish\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c0d2c9a7
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c0d2c9a7
LOG: AppName = d21bcce8
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: F:\EKOPublish\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess/Oracle.DataAccess.EXE.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess.EXE.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess/Oracle.DataAccess.EXE.
LOG: All probing URLs attempted and failed.
duttasandip4...
Member
2 Points
3 Posts
32-Bit Web Site not Working on 64-Bit
Feb 24, 2012 06:39 AM|LINK
Using VS2005 created a web site with backend database Oracle 11g. It is running fine on development machine which is 32 Bit O/S. I try to mount this code on 64-Bit O/S i.e Windows Server 2008 R2 enterprise. Oracle Server & Client is installed on that machine which is compatable with 64-Bit.
VS2005 Professional Edition is installed with Framework SP2.
My Web.Config is as follows
<add assembly="Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
During compilation an error comes
"Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format"
Global Assembly Cache have following entry for the Oracle.DataAccess.dll.
Version=2.112.1.0
PublicKeyToken=89b483f429c47342
Processor : AMD64
Please help me to resolve this issue.
Thanks in advance
HostingASPNe...
All-Star
15922 Points
2982 Posts
Re: 32-Bit Web Site not Working on 64-Bit
Feb 24, 2012 08:41 AM|LINK
Hello,
Open IIS Manager, right click on the app pool, select Advanced Settings, set “Enable 32-bit Applications” to True.
Regards
Free ASP.NET Examples and source code.
duttasandip4...
Member
2 Points
3 Posts
Re: 32-Bit Web Site not Working on 64-Bit
Feb 24, 2012 10:12 AM|LINK
My Error Trace:
Trying to build my website using VS2005 ( developed on 32-Bit O/S) into 64-Bit O/S (Windows Server 2008 R2 Professional Edition) following error occured.
Error 45 Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. F:\EKO_Nxt\web.config 78
I installed Oracle client into 64-Bit which is compatable with 64-Bit .
================================================
IIS - Enable 32bit Application=true;
I publish my website at 32-Bit O/S. Publish code put into 64-Bit O/S and run web site following error occured.
*** Assembly Binder Log Entry (24-02-2012 @ 17:07:10) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = IIS APPPOOL\EkoPublish
LOG: DisplayName = Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342
(Fully-specified)
LOG: Appbase = file:///F:/EKOPublish/
LOG: Initial PrivatePath = F:\EKOPublish\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c0d2c9a7
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c0d2c9a7
LOG: AppName = d21bcce8
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: F:\EKOPublish\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Oracle.DataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess/Oracle.DataAccess.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess.EXE.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/c0d2c9a7/d21bcce8/Oracle.DataAccess/Oracle.DataAccess.EXE.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess.EXE.
LOG: Attempting download of new URL file:///F:/EKOPublish/bin/Oracle.DataAccess/Oracle.DataAccess.EXE.
LOG: All probing URLs attempted and failed.
pradeepbohra
Member
316 Points
73 Posts
Re: 32-Bit Web Site not Working on 64-Bit
Feb 27, 2012 04:17 AM|LINK
This should help you out for sure !
http://stackoverflow.com/questions/1953676/could-not-load-file-or-assembly-for-oracle-dataaccess-in-net