Hi Members,
When i run my application in 2.0 FrameWork I get the below message. This is bugging mr for past one week. Kindly, help me if you'd confronted this error in your project.
Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code
Exception Details: System.InvalidCastException: Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings'.
Line 36: throw new Exception("Erorr creating IMapperRegistry from configuration file. Check the configuration key "+iMapperRegistryConfigKey);
Line 37: }
Line 38: Logger.Write("MapperRegistryAccessor:Successfully created registry from config key "+iMapperRegistryConfigKey,"Domain",1,0,Severity.Information);
Line 39: }
Line 40: /// }
Source File: D:\Josh BAHD Copy on_02222009\Qwest\Qwest.Infrastructure\Qwest.Infrastructure.Common\Domain\Mappers\MapperRegistryAccessor.cs Line: 38
Stack trace:
[InvalidCastException: Unable to cast object of type 'Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings' to type 'Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings'.]
Microsoft.Practices.EnterpriseLibrary.Logging.LoggingConfigurationView.GetLoggingSettings() in c:\EnterpriseLibrary\EnterpriseLibrary\Logging\LoggingConfigurationView.cs:65
Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter.Write(LogEntry log) in c:\EnterpriseLibrary\EnterpriseLibrary\Logging\LogWriter.cs:83
Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write(Object message, String category, Int32 priority, Int32 eventId, Severity severity, String title, IDictionary properties) in c:\EnterpriseLibrary\EnterpriseLibrary\Logging\Logger.cs:201
Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write(Object message, String category, Int32 priority, Int32 eventId, Severity severity) in c:\EnterpriseLibrary\EnterpriseLibrary\Logging\Logger.cs:119
Qwest.Infrastructure.Common.Domain.Mappers.MapperRegistryAccessor.get_MapperRegistry() in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.Infrastructure\Qwest.Infrastructure.Common\Domain\Mappers\MapperRegistryAccessor.cs:38
Qwest.Infrastructure.Common.Domain.DomainObject.GetMapper(Type entityType) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.Infrastructure\Qwest.Infrastructure.Common\Domain\DomainObject.cs:292
Qwest.Infrastructure.Common.Domain.DomainObject.Find(String entityName, String description, Type entityType) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.Infrastructure\Qwest.Infrastructure.Common\Domain\DomainObject.cs:264
Qwest.Infrastructure.Common.Domain.Contacts.Contact.FindContact(String login) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.Infrastructure\Qwest.Infrastructure.Common\Domain\Contacts\Contact.cs:350
Qwest.Infrastructure.Common.Domain.Contacts.Contact.FindContactByExactCUID(String cuid) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.Infrastructure\Qwest.Infrastructure.Common\Domain\Contacts\Contact.cs:355
Qwest.BAHD.BL.Contacts.BAHDContact.FindContactByExactCUID(String cuid) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.BAHD\SRC\Qwest.BAHD.BL\Contacts\BAHDContact.cs:99
Qwest.BAHD.BL.Contacts.BAHDContact.set_CurrentContact(BAHDContact value) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.BAHD\SRC\Qwest.BAHD.BL\Contacts\BAHDContact.cs:47
Qwest.BAHD.UI.Global.Application_AcquireRequestState(Object sender, EventArgs e) in D:\Josh BAHD Copy on_02222009\Qwest\Qwest.BAHD\SRC\Qwest.BAHD.UI\Global.asax.cs:305
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
I've Copied my browser text for your reference. Please help.
Arun