I have a asp.net web site which has been configured to use Enterprise Library 5.0 for logging. Everything works fine but when I convert the web site to asp.net web application with five different projects and added the Enterprise Library 5.0 to the start
page web config file the logging doesn't work at all. Any thing I am doing wrong help please.
As for the "not work", is it simply not producing the log output or raising some error when the application start running? Since you convert the web site application to ASP.NET web project application, it is possible that the application block related configuration
(in web.config file) has changed somewhere. You can try comparing the web.config file (of the original web site) with the one in the new web application project to see if there is any obvious difference.
In addition, since you use logging app block to write log data to disk file, you can use process monitor tool to watch the file system to see if there is any file access related error when the new converted ASP.NET web application is running.
denkyira
Member
9 Points
25 Posts
Enterprise Library 5.0
Dec 13, 2012 03:25 PM|LINK
I have a asp.net web site which has been configured to use Enterprise Library 5.0 for logging. Everything works fine but when I convert the web site to asp.net web application with five different projects and added the Enterprise Library 5.0 to the start page web config file the logging doesn't work at all. Any thing I am doing wrong help please.
Steven Cheng...
Contributor
4199 Points
548 Posts
Microsoft
Moderator
Re: Enterprise Library 5.0
Dec 25, 2012 06:03 AM|LINK
Hi denkyira,
As for the "not work", is it simply not producing the log output or raising some error when the application start running? Since you convert the web site application to ASP.NET web project application, it is possible that the application block related configuration (in web.config file) has changed somewhere. You can try comparing the web.config file (of the original web site) with the one in the new web application project to see if there is any obvious difference.
In addition, since you use logging app block to write log data to disk file, you can use process monitor tool to watch the file system to see if there is any file access related error when the new converted ASP.NET web application is running.
#Process Monitor v3.03 http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Feedback to us
Microsoft One Code Framework