Tuesday, November 25, 2008

Enterprice library, exception handling and logging application block

I have started to get this error message on deployment configuration:

The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl, ...]) failed: The type 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' cannot be resolved. Please verify the spelling is correct or that the full type name is provided. (Strategy type Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy, index 2)


Logging works well but logging exceptions failed.

It seems that I was forgot to deploy Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll. When I put this assembly everything started to work fine.

1 comment:

Marjan Panic said...

I have similar issue.
I installed Windows Server 2008 and Visual Studio 2005.
I tried to run old web app from 2005, and I got some exception.
One issue is that it can't write log to file as it can't access/find log file.


Another issue is, if the asp and/or iis are running under appropriate acoount, with appropriate privilegies.

I will look forward into this next couple of days, and we'll see what will come out!