H
hsphuah
Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw an exception handle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The above exception is thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory.Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw an exception handle by
ConfigurationErrorsException. The error message is:
An error occurred creating the configuration section handler for
enterpriseLibrary.ConfigurationSource: Could not load file or assembly
'Microsoft.Practices.EnterpriseLibrary.Common, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=3be2f8f49e972371' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040) (C:
\GEM\IMS Server\IMS.Server\bin\Debug
\IMSIndicatorManager.vshost.exe.config line 4)
The above exception is thrown from this function implementation:
public static Database CreateDatabase(string name)
{
try
{
DatabaseProviderFactory factory = new
DatabaseProviderFactory(ConfigurationSourceFactory.Create());
return factory.Create(name);
}
catch (ConfigurationErrorsException
configurationException)
{
TryLogConfigurationError(configurationException,
name);
throw;
}
}
Is there any suggestions to fix it?Thanks.
HS