Click here to Skip to main content
15,890,690 members

Comments by Zia Mehdi (Top 5 by date)

Zia Mehdi 17-Mar-11 11:28am View    
Thanks Marcus.
I have changed all settings of RollingFileAppender for RollingStyle "Size". Even then it is saying RollingFileAppender not found. I guess it should atleast find the appender.
Zia Mehdi 16-Mar-11 15:30pm View    
I have googled this but it is the special condition.
Previously my "RollingLogFileAppender" was configured with RollingStyle="Date" and it was working fine. But when I change this with RollingStyle="Size" since then it is giving me error. Even if I change RollingStyle="Date" with the same other values it works fine agian. I don't know what is the problem with the SIZE rollingstyle.
Zia Mehdi 16-Mar-11 13:54pm View    
File is defined in App.Config file ".\MsgBoxlog.log".
Previously my "RollingLogFileAppender" was configured with RollingStyle="Date" and it was working fine. But when I change this with RollingStyle="Size" since then it is giving me error.
Even if I change RollingStyle="Date" with the same other values it works fine agian.
I don't know what is the problem with the SIZE rollingstyle.
Zia Mehdi 16-Mar-11 13:50pm View    
Thanks Mike
Zia Mehdi 21-Jan-11 11:34am View    
Thanks Manfred,
Yes you are right. Error is in my configuration file. But thats the thing which I want to catch. There is no log4Net tag in my configuration file. If user doesn't configured log4Net properly then I want to catch the exception in ClsLog and throw that exception to ClsMessage. ClsMessage then write an event log for this error. But ClsLog can't catch the exception, I mean it is not going into catch block but shows the error in console and executes normally.

Error is below:

log4Net:ERROR XmlConfigurator: Failed to find configuration section 'log4net' in the applicatio's .config file. Check your .config file for the <log4net> and <configsections> elements. The configuration section should look like: