Solved

.Net logwriter failed to write to log file causing subsequent batch processing to fail

Posted on 2013-01-30
6
648 Views
Last Modified: 2013-02-09
One of the vendor written application (using .Net) was not able to
proceed to do batch processing when it fails to write to a logfile
(as writing to logfile is done first before it can proceed to do the
 batch processing):

I'm currently checking for the log filename & the ownership of
the log from the programmer.

Below is the error / messages:

=========================================================

Application: XXX.eConnect.BatchJob.Executor.exe

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Practices.ServiceLocation.ActivationException
Stack:
   at Microsoft.Practices.EnterpriseLibrary.Logging.Logger.get_Writer()
   at Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Write (Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry)
   at XXX.eConnect.BatchJob.BatchJobUtility.TraceInfo(System.String, System.String, System.String)
   at XXX.eConnect.BatchJob.Executor.Program.Main(System.String[])
0
Comment
Question by:sunhux
  • 3
6 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 38839823
Wrap the Logging method using try.. catch and handle the exception accordingly.
0
 

Author Comment

by:sunhux
ID: 38840054
can you give me a sample code of how you would do "wrap the Logging"
& handle the exception?
0
 

Author Comment

by:sunhux
ID: 38840088
Attached the portion of codes which our programmer suspect:
just trying my luck to see if the attached screen will give any clue
dotNetLogwriter.jpg
0
 

Author Closing Comment

by:sunhux
ID: 38871296
Not quite address the issue
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# MVC Insert Multiple Row into DB 2 30
Code Manager | Snippits 2 36
WordPress 8 27
Programming Language for Wordpress 7 34
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question