EDN Admin
Well-known member
I am using VS 2010, SQL Server 2008, .NET framework 4.0 and EntLibrary 5.0
My application was running perfectly on my dev box which is 32 bit Win 7. Now I am trying to install my windows service application on 64 bit Windows Server 2008 with .Net 4.0.
When I start my service, this is the error I come across the below exception. Idont use Oracle at all, so why is this coming in - frustrating. Could not find a proper solution on the web so far. Here is the stack trace, App.Config and the code that is invoked.
Build this against .NET 4.0 full framework.
Any suggestions?
<pre> public static Database GetDBInstance()
{
var namedDB = EnterpriseLibraryContainer.Current.GetInstance("CirrusMessageServer");
return namedDB;
}[/code]
<?xml version="1.0"?><br/>
<configuration><br/>
<configSections><br/>
<!--Enterprise library settings--><br/>
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="true" /><br/>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="true" /><br/>
<!--Enterprise library settings--><br/>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
<br/>
</configSections>
<enterpriseLibrary.ConfigurationSource selectedSource="System Configuration Source <br/>
<sources><br/>
<add name="System Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.SystemConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" /><br/>
</sources><br/>
</enterpriseLibrary.ConfigurationSource><br/>
<dataConfiguration defaultDatabase="CirrusMessageServer" /><br/>
<connectionStrings><br/>
<add name="CirrusMessageServer" connectionString="Database=Cirrus_MessageServer_New;Server=(local);User Id=sa;Password=tempscott;"<br/>
providerName="System.Data.SqlClient" /><br/>
</connectionStrings>
</configuration>
System.IO.FileNotFoundException: Could not load file or assembly System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException:
Could not load file or assembly System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 or one of its dependencies. The system cannot find the file specified.<br/>
--- End of inner exception stack trace ---<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.GetDefaultMapping(String dbProviderName)<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.GetDatabaseData(ConnectionStringSettings connectionString, DatabaseSettings databaseSettings) in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line
155<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.<get_Databases>d__0.MoveNext() in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line 94<br/>
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)<br/>
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.<DoGetRegistrations>d__10.MoveNext() in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line
323<br/>
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<br/>
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)<br/>
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.GetRegistrations(IConfigurationSource configurationSource) in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line
307<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.TypeLoadingLocator.GetRegistrationsInternal(IConfigurationSource configurationSource, Func`3 registrationAccessor)<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.CompositeTypeRegistrationsProviderLocator.<>c__DisplayClass5.<GetRegistrationsInternal>b__4(ITypeRegistrationsProvider l)<br/>
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.Unity.UnityContainerConfigurator.RegisterAllCore(IConfigurationSource configurationSource, ITypeRegistrationsProvider rootProvider)<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ChangeTrackingContainerConfigurator.RegisterAll(IConfigurationSource configurationSource, ITypeRegistrationsProvider rootProvider)<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet()<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.get_Current()<br/>
at Cirrus.Interface.DAL.DBManager.GetDBInstance() in C:CodeIQCirrus-DevelopmentCirrus.Interface.DALDBManager.cs:line 31<br/>
at Cirrus.Interface.DAL.DBManager..cctor() in C:CodeIQCirrus-DevelopmentCirrus.Interface.DALDBManager.cs:line 24<br/>
--- End of inner exception stack trace ---<br/>
at Cirrus.Interface.DAL.DBManager.GetUnprocessedMessages()<br/>
at
View the full article
My application was running perfectly on my dev box which is 32 bit Win 7. Now I am trying to install my windows service application on 64 bit Windows Server 2008 with .Net 4.0.
When I start my service, this is the error I come across the below exception. Idont use Oracle at all, so why is this coming in - frustrating. Could not find a proper solution on the web so far. Here is the stack trace, App.Config and the code that is invoked.
Build this against .NET 4.0 full framework.
Any suggestions?
<pre> public static Database GetDBInstance()
{
var namedDB = EnterpriseLibraryContainer.Current.GetInstance("CirrusMessageServer");
return namedDB;
}[/code]
<?xml version="1.0"?><br/>
<configuration><br/>
<configSections><br/>
<!--Enterprise library settings--><br/>
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" requirePermission="true" /><br/>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
requirePermission="true" /><br/>
<!--Enterprise library settings--><br/>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
<br/>
</configSections>
<enterpriseLibrary.ConfigurationSource selectedSource="System Configuration Source <br/>
<sources><br/>
<add name="System Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.SystemConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" /><br/>
</sources><br/>
</enterpriseLibrary.ConfigurationSource><br/>
<dataConfiguration defaultDatabase="CirrusMessageServer" /><br/>
<connectionStrings><br/>
<add name="CirrusMessageServer" connectionString="Database=Cirrus_MessageServer_New;Server=(local);User Id=sa;Password=tempscott;"<br/>
providerName="System.Data.SqlClient" /><br/>
</connectionStrings>
</configuration>
System.IO.FileNotFoundException: Could not load file or assembly System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException:
Could not load file or assembly System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 or one of its dependencies. The system cannot find the file specified.<br/>
--- End of inner exception stack trace ---<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.GetDefaultMapping(String dbProviderName)<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.GetDatabaseData(ConnectionStringSettings connectionString, DatabaseSettings databaseSettings) in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line
155<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.<get_Databases>d__0.MoveNext() in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line 94<br/>
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)<br/>
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.<DoGetRegistrations>d__10.MoveNext() in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line
323<br/>
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<br/>
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)<br/>
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)<br/>
at Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSyntheticConfigSettings.GetRegistrations(IConfigurationSource configurationSource) in e:BuildsEntLibLatestSourceBlocksDataSrcDataConfigurationDatabaseSyntheticConfigSettings.cs:line
307<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.TypeLoadingLocator.GetRegistrationsInternal(IConfigurationSource configurationSource, Func`3 registrationAccessor)<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.CompositeTypeRegistrationsProviderLocator.<>c__DisplayClass5.<GetRegistrationsInternal>b__4(ITypeRegistrationsProvider l)<br/>
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.Unity.UnityContainerConfigurator.RegisterAllCore(IConfigurationSource configurationSource, ITypeRegistrationsProvider rootProvider)<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ChangeTrackingContainerConfigurator.RegisterAll(IConfigurationSource configurationSource, ITypeRegistrationsProvider rootProvider)<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet()<br/>
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.get_Current()<br/>
at Cirrus.Interface.DAL.DBManager.GetDBInstance() in C:CodeIQCirrus-DevelopmentCirrus.Interface.DALDBManager.cs:line 31<br/>
at Cirrus.Interface.DAL.DBManager..cctor() in C:CodeIQCirrus-DevelopmentCirrus.Interface.DALDBManager.cs:line 24<br/>
--- End of inner exception stack trace ---<br/>
at Cirrus.Interface.DAL.DBManager.GetUnprocessedMessages()<br/>
at
View the full article