ConfigurationErrorsExecption was unhandled.



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

.



Relevant Pages

  • Re: ConfigurationErrorsExecption was unhandled.
    ... I am new to the Microsoft .Net and hope that someone can help me on my ... Enterprise Library - Jan 2006 throw an exception handle by ... ConfigurationErrorsException. ... If you already have then you need to put the required assemblies in ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: VPN Error
    ... Control to the "Temporary ASP.NET Files" folder. ... Microsoft CSS Online Newsgroup Support ... | Exception Details: System.Web.HttpException: Failed to map the path '/'. ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS 2003 BOSD (mrxdav.sys), Help Needed Please
    ... Cris Hanna [SBS - MVP] ... MVPs do not work for Microsoft ... Use!analyze -v to get detailed debugging information. ... exception record and context record. ...
    (microsoft.public.windows.server.sbs)
  • BSoD references missing file?
    ... OS Manufacturer Microsoft Corporation ... I tried backing up the registry and removing these keys, ... Here's a kernel dump from the most recent crash: ... The exception code that was not handled ...
    (microsoft.public.windowsxp.general)
  • Re: DropDownList has SelectedValue which in invalid
    ... From your description you want to avoid getting the exception: ... 'ddlAssignedTo' has a SelectedValue which is invalid because it does not ... Microsoft Online Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)