Solved

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

Posted on 2013-01-30
6
655 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

736 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