problem in using the Microsoft Enterprise Library 3.1 ver while logging exceptions in case of Event Handlers and webparts class Libraries

Jun 2, 2008 at 10:56 AM
Dear all,
I am facing a problem in using the Microsoft Enterprise Library 3.1 ver while logging the exceptions in our application.(Event Handlers and webparts class Libraries)
The Error Message we are getting in case of class libraries :
The type initializer for Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy' threw an exception.
Note:  1.  I have placed the safe control entries in the site's web.config file for the ExceptionHandling dll's that i have referred in the class libraries projects.
           2. I have placed the dll's in the BIN folder of the site as well.
           3.These dll's are from the path "C:\Program Files\Microsoft Enterprise Library 3.1 - May 2007" which we get after installation of Enterprise Library.
But i am able to log the errors successfully in Asp.Net normal website using the same Microsoft Enterprise Library application blocks as the way i did for the class libraries.
Any help from your side in resolving this issue would be highly useful to proceed further.
Jun 3, 2008 at 6:49 AM
Not sure what this is. What's the inner exception that's thrown?

Anyway I'd suggest to post this one on the general entlib forum ( since this doesn't seem to be specific to the EntLib extensions to WSSF.


Jun 3, 2008 at 7:08 AM
hi gerben

Thanks a lot....

i am really in need of the solution as we are in the most critical phose of our project development.....

i am really bit surprised why this exception is occuring only incase of the class libraries project

looking forward ur extended support