ConfigurationErrorsExecption was unhandled.
- From: hsphuah@xxxxxxx
- Date: 30 Jan 2007 16:38:20 -0800
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
.
- Follow-Ups:
- Re: ConfigurationErrorsExecption was unhandled.
- From: WishMaster
- Re: ConfigurationErrorsExecption was unhandled.
- Prev by Date: events that fire events that fire events....a bad thing?
- Next by Date: Re: After user enters a row of data into a DataGrid (.net 1.1), how to auto-update the actual database?
- Previous by thread: events that fire events that fire events....a bad thing?
- Next by thread: Re: ConfigurationErrorsExecption was unhandled.
- Index(es):
Relevant Pages
|
|