Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 14, 2008 01:58 PM by zVinod
Aug 24, 2006 04:54 PM|LINK
I have the Exception handler defined in my code, and I have this configuration:
But I am getting an error with the <add logCategory="UI" ..> statement. The EL Config Tool says it is fine, but after running it, I get the following error:
The type Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null from configuration
could not be created.
Aug 29, 2006 07:41 PM|LINK
Did you solve your issue? or did u give up on it :)
I'm having a similar problem
Thank you for your help!
Aug 29, 2006 11:44 PM|LINK
Gave up so far... I don't have the time... I could easily create my own custom component to do this... All you need is a class with a static method to write, and do a database write like any other DAC object.
Oct 02, 2006 02:42 PM|LINK
I had the same problem.
It has to do with the instantiation of the class, so it must be a problem of a DLL, I figured.
So in a brute force atempt, i added references to all the DLLs in the instalation dir\bin of the Ent Lib (in my case it is C:\Program Files\Microsoft Enterprise Library January 2006\bin) to the project, and now it runs smoothly.
I will try to figure the exact class(es) and when I do, I'll add a new message here.
Hope it helps!
Oct 05, 2006 11:45 PM|LINK
Any luck on this? I'm having the same issue.
Oct 09, 2006 04:42 PM|LINK
I found that the solution to the problem was that you need 2 references. The documentation for the PuzzlerUI lab only mentions that you need a reference to the exception handling DLL. You must also add a reference to the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging
as well to avoid the unhandled exception.
Dec 04, 2006 10:47 AM|LINK
I had the same problem and I resolved it by first referencing the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging; and then using the namespace in the necessary page.
For any clarification get back to me...
Jan 08, 2007 01:44 PM|LINK
Same problem here, I tried all of the above things, but they dind't worked for me.
What did worked is very strange, I create a LoggingExceptionHandler, but don't use it.
I'm guessing that it forces the loading of the DLL and therefore it works. If I comment out the line: LoggingExceptionHandler han=null; it gives me the error that was mentioned in the first post.
public class ExceptionManager
public static void HandleExceptionNoLogging(Exception Ex)
ExceptionPolicy.HandleException(Ex, "Global Policy");
It's not a clean way, but creating an empty LoggingExceptionHandler hasn't got a huge impact and it works...
Jun 27, 2007 09:52 PM|LINK
Thanks ..I too faced the same probs It works[:)]
Aug 15, 2007 04:07 PM|LINK
I had the same problem. I added to my references
and it worked like a charm.