title: Oracle.DataAccess.Client Error
body: <p>Background: 
  This website use oracle and spring.net. <br>
  version of the Oracle.DataAccess: 4.112.2.0 <br>
  version of the Spring: 1.3.2.40943 <br></p>
  
  <p>Webconfig file</p>
  
  <pre><code>&lt;db:provider id="SDDbProvider" provider="Oracle.DataAccess.Client"
             connectionString="User Id=****; Password = *****; Data Source = (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=****)(PORT=****))(CONNECT_DATA=(SERVER=dedicated)(SERVICE_NAME=*****)))" /&gt;
  </code></pre>
  
  <p>This is working fine in debug mode. And I publish this website on local IIS (7.5) &amp; which is also working fine.
  But when I copy the published folder to a remote server (also runs IIS 7.5) it gives the folowing errror. </p>
  
  <p>Note: I checked the bin in published folder and it has all the necessary DLL for Oracle </p>
  
  <p>oci <br> ociw32 <br> Oracle.DataAccess <br> orannzsbb11 <br> oraocci11 <br> oraociei11 <br> OraOps11w <br></p>
  
  <pre><code>Error thrown by a dependency of object 'Oracle.DataAccess.Client' defined in 'assembly [Spring.Data, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 400' : Unsatisfied dependency expressed through constructor argument with index 2 of type [System.Type] : Could not convert constructor argument value [Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342] to required type [System.Type] : Cannot convert property value of type [System.String] to required type [System.Type] for property ''.
  while resolving 'constructor argument with name dbmetadata' to 'Spring.Data.Common.DbMetadata#195EA5D' defined in 'assembly [Spring.Data, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 400' 
  
  
  [UnsatisfiedDependencyException: Error thrown by a dependency of object 'Oracle.DataAccess.Client' defined in 'assembly [Spring.Data, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 400' : Unsatisfied dependency expressed through constructor argument with index 2 of type [System.Type] : Could not convert constructor argument value [Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342] to required type [System.Type] : Cannot convert property value of type [System.String] to required type [System.Type] for property ''.
   while resolving 'constructor argument with name dbmetadata' to 'Spring.Data.Common.DbMetadata#25C456C' defined in 'assembly [Spring.Data, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07], resource [Spring.Data.Common.dbproviders.xml] line 400']
     Spring.Objects.Factory.Support.ObjectDefinitionValueResolver.ResolveInnerObjectDefinition(String name, String innerObjectName, String argumentName, IObjectDefinition definition, Boolean singletonOwner) +385
     Spring.Objects.Factory.Support.ObjectDefinitionValueResolver.ResolvePropertyValue(String name, IObjectDefinition definition, String argumentName, Object argumentValue) +278
     Spring.Objects.Factory.Support.ObjectDefinitionValueResolver.ResolveValueIfNecessary(String name, IObjectDefinition definition, String argumentName, Object argumentValue) +19
     Spring.Objects.Factory.Support.ConstructorResolver.ResolveConstructorArguments(String objectName, RootObjectDefinition definition, ObjectWrapper wrapper, ConstructorArgumentValues cargs, ConstructorArgumentValues resolvedValues) +1385
     Spring.Objects.Factory.Support.ConstructorResolver.GetConstructorInstantiationInfo(String objectName, RootObjectDefinition rod, ConstructorInfo[] chosenCtors, Object[] explicitArgs) +218
     Spring.Objects.Factory.Support.ConstructorResolver.AutowireConstructor(String objectName, RootObjectDefinition rod, ConstructorInfo[] chosenCtors, Object[] explicitArgs) +79
     Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObjectInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) +278
     Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) +1204
     Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectInternal(String name, Type requiredType, Object[] arguments, Boolean suppressConfigure) +2216
     Spring.Objects.Factory.Support.AbstractObjectFactory.GetObject(String name, Type requiredType) +21
     Spring.Data.Common.DbProviderFactory.GetDbProvider(String providerInvariantName) +81
     Spring.Data.Common.DbProviderFactoryObject.CreateProviderInstance() +18
     Spring.Data.Common.DbProviderFactoryObject.GetObject() +205
     Spring.Objects.Factory.Support.AbstractObjectFactory.GetObjectFromFactoryObject(IFactoryObject factory, String objectName, RootObjectDefinition rod) +98
  
  [ObjectCreationException: Error creating object with name 'SDDbProvider' : FactoryObject threw exception on object creation.]
     System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +4649821
     System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
     System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
     System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375
  
  [HttpException (0x80004005): Error creating object with name 'SDDbProvider' : FactoryObject threw exception on object creation.]
     System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
     System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
     System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
  </code></pre>
  
  <p>Any idea why this is happening? Has it something to do with GAC in the remote server?
  Thanks</p>