Solved

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

Posted on 2013-01-30
6
662 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.

728 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