Bonjour,
Dans le cadre du portage d'une application en Web,
une première version 32 bits qui fonctionne depuis plusieurs années doit maintenant être installer sur un Serveur 2008 R2 64 bits.
J'ai installé sur ce serveur :
une version Runtime 10.2 d'oracle 64bits avec la quel je me connecte à une BDD,
un Visual Studio 2008 avec Nhibernate 2.1.2 (version unique surement pas 64 bits)
porter mon application est compilé.
Seulement j'ai un message d'erreur lors de la première interrogation à la BDD
Code:
Server Error in '/WebSite' Application.
--------------------------------------------------------------------------------
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Source Error:
Line 31: delegate(ISession session)
Line 32: {
Line 33: return session
Line 34: .CreateQuery("from Parameter p where p.Application = :application and p.Name = :name")
Line 35: .SetString("name", name.ToUpper())
Source File: D:\Projets\Intranet\Orbis.Restauration\Services.Impl\Services\Settings\SettingsService.cs Line: 33
Stack Trace:
[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
System.Data.Common.UnsafeNativeMethods.OCILobCopy2(IntPtr svchp, IntPtr errhp, IntPtr dst_locp, IntPtr src_locp, UInt64 amount, UInt64 dst_offset, UInt64 src_offset) +0
System.Data.OracleClient.OCI.DetermineClientVersion() +178
[InvalidOperationException: 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.]
System.Data.OracleClient.OCI.DetermineClientVersion() +459
System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName) +63
System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions) +133
System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +40
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +29
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +72
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +457
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +100
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +116
System.Data.OracleClient.OracleConnection.Open() +40
NHibernate.Connection.DriverConnectionProvider.GetConnection() +120
NHibernate.Impl.SessionFactoryImpl.OpenConnection() +76
[ADOException: cannot open connection]
NHibernate.Impl.SessionFactoryImpl.OpenConnection() +152
NHibernate.Impl.ConnectionManager.GetConnection() +115
NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) +93
NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) +65
NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session) +318
NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +363
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +91
NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) +95
NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) +52
NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes) +170
NHibernate.Hql.Classic.QueryTranslator.List(ISessionImplementor session, QueryParameters queryParameters) +84
NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters, IList results) +344
NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters) +81
NHibernate.Impl.QueryImpl.List() +154
NHibernate.Impl.AbstractQueryImpl.UniqueResult() +39
Orbis.Foodservices.Services.Settings.<>c__DisplayClass1.<GetParameter>b__0(ISession session) in D:\Projets\Intranet\Orbis.Restauration\Services.Impl\Services\Settings\SettingsService.cs:33
Spring.Data.NHibernate.ExecuteHibernateCallbackUsingDelegate.DoInHibernate(ISession session) +48
Spring.Data.NHibernate.HibernateTemplate.Execute(IHibernateCallback action, Boolean exposeNativeSession) +640
Spring.Data.NHibernate.HibernateTemplate.Execute(IHibernateCallback action) +69
Spring.Data.NHibernate.HibernateTemplate.Execute(HibernateDelegate del) +68
Orbis.Foodservices.Services.Settings.SettingsService.GetParameter(Char application, String name) in D:\Projets\Intranet\Orbis.Restauration\Services.Impl\Services\Settings\SettingsService.cs:28
Spring.DynamicReflection.Method_GetParameter_8774b1bcbf3749939bde698368613bb1.Invoke(Object target, Object[] args) +196
Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments) +117
Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() +122
Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +128
Spring.Transaction.Interceptor.TransactionInterceptor.Invoke(IMethodInvocation invocation) +233
Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +390
Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, Object[] args, IList interceptors) +178
CompositionAopProxy_1a8088a229c94d54998912bdc9c1c974.GetParameter(Char application, String name) +398
Global.get_IsActive() in d:\Projets\Intranet\Orbis.Restauration\WebSite\App_Code\Global.cs:111
Global.Application_AuthenticateRequest(Object sender, EventArgs e) in d:\Projets\Intranet\Orbis.Restauration\WebSite\App_Code\Global.cs:150
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Le message est un peut long mais j'ai eu peur de rater une info :-(
Je ne sais plus par ou reprendre le paramétrage.
L'un d'entre vous a t'il une idée de mon erreur ?
Merci de votre patience car je suis encore débutant.