Re: Enterprise Library EHAB Error
- From: "Jeff Winn" <jwinn@xxxxxxxxxx>
- Date: Thu, 22 May 2008 16:08:06 -0400
That error isn't telling you that you didn't set the references to the assemblies. If you hadn't set the references it wouldn't have compiled and there is no way you'd get a stack trace out of an application that isn't running. It's telling you that it cannot find a copy of the assembly anywhere. Either in your bin folder, GAC, or in a probing path.
"Polly Anna" <PollyAnna@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:F387CE6B-F81E-4795-9B39-3AD61B6A563F@xxxxxxxxxxxxxxxx
Hi,
I have been successfully using the EHAB & Logging Application Block. Now
however I get the error below and looking on line I was told that I have not
set references to all the dlls. I have set references to the following dlls
to enable logging in the EHAB -
Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.Design.dll,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.Configuration.Design.dll,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.Design.dl
Microsoft.Practices.EnterpriseLibrary.Logging.dll
together with the EHAB dlls -
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.ObjectBuilder.dll
I have even removed the references then re-added them.
I would really appreciate any help.
Kind regards,
Polly Anna
the Error message -
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionHandlingException:
The type
'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging,
Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' cannot be
resolved. Please verify the spelling is correct or that the full type name is
provided. ---> System.ArgumentException: The type
'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler,
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging,
Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' cannot be
resolved. Please verify the spelling is correct or that the full type name is
provided.
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.AssemblyQualifiedTypeNameConverter.ConvertFrom(ITypeDescriptorContext
context, CultureInfo culture, Object value)
at System.ComponentModel.TypeConverter.ConvertFrom(Object value)
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.NameTypeConfigurationElement.get_Type()
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.CustomProviderAssembler`3.Assemble(IBuilderContext
context, TConfiguration objectConfiguration, IConfigurationSource
configurationSource, ConfigurationReflectionCache reflectionCache)
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.AssemblerBasedObjectFactory`2.Create(IBuilderContext
context, TConfiguration objectConfiguration, IConfigurationSource
configurationSource, ConfigurationReflectionCache reflectionCache)
at
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntryCustomFactory.Create(IBuilderContext
context, ExceptionTypeData objectConfiguration, IConfigurationSource
configurationSource, ConfigurationReflectionCache reflectionCache)
at
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyCustomFactory.CreateObject(IBuilderContext
context, String name, IConfigurationSource configurationSource,
ConfigurationReflectionCache reflectionCache)
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.BuildUp(IBuilderContext
context, Type t, Object existing, String id)
at
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild)
at
Microsoft.Practices.ObjectBuilder.SingletonStrategy.BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild)
at
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild)
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfigurationNameMappingStrategy.BuildUp(IBuilderContext
context, Type t, Object existing, String id)
at
Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator
locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
transientPolicies)
at
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator
locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
transientPolicies)
at
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadWriteLocator
locator, String idToBuild, Object existing, PolicyList[] transientPolicies)
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator
locator, String id, IConfigurationSource configurationSource)
at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.LocatorNameTypeFactoryBase`1.Create(String name)
at
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.GetExceptionPolicy(Exception
exception, String policyName, ExceptionPolicyFactory factory)
--- End of inner exception stack trace ---
at
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.GetExceptionPolicy(Exception
exception, String policyName, ExceptionPolicyFactory factory)
at
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception
exceptionToHandle, String policyName, ExceptionPolicyFactory policyFactory)
at
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName)
at DenEHAB.ExceptionPolicy.HandleException(Exception& pEx, String
pstrPolicyName) in C:\Documents and Settings\David Woodhouse\My
Documents\Visual Studio 2008\Projects\DenEHAB\DenEHAB\ExceptionPolicy.vb:line
15
at WindowsTestHarness.Form1.cmdEventLog_Click(Object sender, EventArgs e)
in C:\Documents and Settings\David Woodhouse\My Documents\Visual Studio
2008\Projects\DenEHAB\WindowsTestHarness\Form1.vb:line 134
.
- Follow-Ups:
- Re: Enterprise Library EHAB Error
- From: Polly Anna
- Re: Enterprise Library EHAB Error
- References:
- Enterprise Library EHAB Error
- From: Polly Anna
- Enterprise Library EHAB Error
- Prev by Date: Re: VB6 Equivalent
- Next by Date: Share classes / projects between frameworks
- Previous by thread: Enterprise Library EHAB Error
- Next by thread: Re: Enterprise Library EHAB Error
- Index(es):
Relevant Pages
|