15,890,690 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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: