I have downloaded sample application "aExpence" and run in-process. Application is able to create two file as setup but it is not writing any thing.
However another sample from Hands on application "Enough PI" is creating as well as writing lines to that file.
Do we need to setup anything in web environment.
I haven't modified any of above sample application.
I downloaded the sample application, installed the database and the logging is working.
Here are some things to check:
- Permissions on the file to see if there are any issues there.
- Verify that the AppSetting "UseInprocEventTracing" is set to true is set to true. If not then no events will be captured to the in-process listeners
- Check if the Traces table populated with any entries. If not then it would appear that no logging is occurring and the problem is not related to the file-based sinks.
- If you debug the application does the
AExpenseEvents EventSource call the WriteEvent method (i.e. IsEnabled is true)?
Enterprise Library support engineer