Problem on Windows x64 ASP.NET

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
tbraun
Posts: 3
Joined: Tue 22 Jan 2008 09:44

Problem on Windows x64 ASP.NET

Post by tbraun » Tue 22 Jan 2008 09:58

Hello,
I try to execute an ASP.NET application on an Server with Windows 2003 64bit. On this Machine their was an ORACLE Database 10g 64bit installed.
Also installed is an ORACLE 10g Client 32bit.
I get the following error message:

**********************************************************

Ereigniscode: 3005
Ereignismeldung: An unhandled exception has occurred.
Ereigniszeit: 22.01.2008 10:34:47
Ereigniszeit (UTC): 22.01.2008 09:34:47
Ereignis-ID: af7027236a8f4623bc044263014de5fc
Ereignissequenz: 16
Vorkommen: 1
Ereignisdetailcode: 0

Anwendungsinformationen:
Anwendungsdomäne: /LM/W3SVC/880382662/Root-1-128454680758551217
Vertrauensebene: Full
Virtueller Anwendungspfad: /
Anwendungspfad: C:\Inetpub\WearhouseWeb\
Computername: S15282301

Prozessinformationen:
Prozess-ID: 504
Prozessname: w3wp.exe
Kontoname: NT-AUTORITÄT\NETZWERKDIENST

Ausnahmeinformationen:
Ausnahmetyp: BadImageFormatException
Ausnahmemeldung: Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B)

Anforderungsinformationen:
Anforderungs-URL: http://87.106.217.230/Anmeldung.aspx
Anforderungspfad: /Anmeldung.aspx
Benutzerhostadresse: 87.106.217.230
Benutzer:
Ist authentifiziert: False
Authentifizierungstyp:
Threadkontoname: NT-AUTORITÄT\NETZWERKDIENST

Threadinformationen:
Thread-ID: 7
Threadkontoname: NT-AUTORITÄT\NETZWERKDIENST
Identitätswechsel für: False
Stapelüberwachung: bei OciDynamicType.nativea(Int32 )
bei OciDynamicType.a(Int32 )
bei CoreLab.Oracle.au..ctor(Boolean A_0, Boolean A_1, OracleHome A_2)
bei CoreLab.Oracle.au.a(Boolean A_0, Boolean A_1, OracleHome A_2)
bei CoreLab.Oracle.OracleInternalConnection..ctor(w connectionOptions)
bei CoreLab.Oracle.m.a(DbConnectionOptions A_0, Object A_1, DbConnectionBase A_2)
bei CoreLab.Common.ay.a(j A_0, DbConnectionOptions A_1)
bei CoreLab.Common.j.a()
bei CoreLab.Common.j.k()
bei CoreLab.Common.ay.a(DbConnectionBase A_0)
bei CoreLab.Common.ad.a(DbConnectionBase A_0)
bei CoreLab.Oracle.OracleConnection.Open()
bei Texdata.DIAMOD.BusinessLogic.Basis.Basisklasse.OeffneVerbindung()
bei Texdata.DIAMOD.BusinessLogic.Basis.Basisklasse.HoleTabelle(String tabname, String sqlSelect, List`1 parameter, Int32 anzahlzeilen)
bei Texdata.DIAMOD.BusinessLogic.Basis.Basisklasse.HoleTabelle(String tabname, String sqlSelect, List`1 parameter)
bei Texdata.Wearhouse.BusinessLogic.Personal.Personal.GetPersonalStammDaten(Int32 Firma, Int32 Kunde, String PersonalNr) in C:\SourceLokal\WearhouseWeb\Personal.cs:Zeile 480.
bei Texdata.Wearhouse.BusinessLogic.Personal.Personal.PruefenZugang(Int32 Firma, Int32 Unternehmen, Int32 Bereich, Int32 Dienststelle, String PersonalNr, String EingabeKennwort, String& Fehlermeldung, Int32& GroesseVarianteAenderbar) in C:\SourceLokal\WearhouseWeb\Personal.cs:Zeile 523.
bei Wearhouse_Web.Anmeldung.cmdAnmelden_Click(Object sender, EventArgs e) in C:\SourceLokal\WearhouseWeb\Anmeldung.aspx.cs:Zeile 81.
bei System.Web.UI.WebControls.Button.OnClick(EventArgs e)
bei System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
bei System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
bei System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
bei System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
bei System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Details des benutzerdefinierten Ereignisses:

Weitere Informationen über die Hilfe- und Supportdienste erhalten Sie unter http://go.microsoft.com/fwlink/events.asp.

**********************************************************

Can you help me? Have you any idea?

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Tue 22 Jan 2008 11:10

Could you translate the error message into English? (In order to perform this change you regional settings and Visual Studio will pick them up).
Apparently, the problem is caused by server security settings. An unmanaged library load attempt has occurred and reflection mechanism is being used here.

Peep into Deployment topic in OraDirect .NET documentation.

tbraun
Posts: 3
Joined: Tue 22 Jan 2008 09:44

Post by tbraun » Tue 22 Jan 2008 15:46

Hello Aexey,

I will try to translate the error message into English.

An attempt was made to load a program with an incorrect format.

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Tue 22 Jan 2008 16:10

Perhaps the error is here.
Your program is a 32-bit application. Add it tries to load 64-bit library.
Or vice versa, your application is 64-bit and you are attempting to load a 32-bit library.

tbraun
Posts: 3
Joined: Tue 22 Jan 2008 09:44

Post by tbraun » Wed 23 Jan 2008 07:09

That's right. My program is a 32-bit application and it try to load the oci.dll from the 64-bit Oracle server installation. But I have also installed the 32-bit Oracle Client. How can I tell my application, that they must access to the 32-bit Oracle client oci.dll?

Alexey.mdr
Posts: 729
Joined: Thu 13 Dec 2007 10:24

Post by Alexey.mdr » Wed 23 Jan 2008 10:32

Check OracleConnection.Home property. You might have several clients installed and being connected through the wrong Oracle client by default.

Post Reply