I have pinpointed the issue to be related to a form POST requests but like Kevin mentioned it could be a caching problem. I would like to find out how to resolve this issue on Windows 2003 (IIS 6).
A reference to a simple cookie example that I created using log4Net can be downloaded at http://www.cs.uwm.edu/~landis/CookieLog4NetExample.zip Log4Net works just fine when you access the page and refresh over again. The cookie label stays in sync with the log file. http://localhost/testlog4net/test.aspx Now if you access the page with a form request going to http://localhost/test.html and submit the POST request and try it over again, log4net on Windows 2003 (IIS 6) some how caches the log4net request and then logs sporadically. You'll notice that the cookie is still incremented on the page but the logging is not. This example works with no problems on Windows 2000 on IIS 5. No clue on what is going on with log4net on IIS 6. --- Kevin Williams <[EMAIL PROTECTED]> wrote: > Sounds like a caching problem. Something is caching > the page - perhaps > IIS, the browser, or something else. > > Shoaib Shakoor wrote: > > Hi > > Same logging and logger works perfectly fine on my > own machine using > > Windows XP, even i updated any file it does not > stopt eh process of > > logging. > > Regards > > Shoaib > > > > On 5/10/05, Shoaib Shakoor > <[EMAIL PROTECTED]> wrote: > > > >>Hi > >>I am facing the same problem when i deployed the > application on the > >>machine using Server 2003, the application Logs > for the first time and > >>some times it stops doing the logging any where in > the middle. > >>When i updated any file of the application , it > stops the logging > >>process. The only solution i found so far is to > restart the server > >>every time when i updated any file on the machine > using Windows server > >>2003. > >>How can i fix this problem > >>Regards > >>Shoaib Shakoor > >> > >>On 5/10/05, Peter Landis <[EMAIL PROTECTED]> > wrote: > >> > >>>The appender that I'm using is a > "LogFileAppender". > >>> > >>>The User Account is a member of the "Guest" and > >>>"IIS_WPG" group. > >>> > >>>The odd thing is when I request the page the > first few > >>>times, the web app logs the request via Log4Net > to the > >>>log file. But when I request the page again a > couple > >>>times in a row, it does not log the request in > the log > >>>file. I know the http request is getting through > >>>because the ASP.NET code behind is logging data > via > >>>ADO.NET into a database. The database submission > is > >>>getting through but the log4Net does not log > anything > >>>after numerous requests. It only logs > sporadically. > >>> > >>>To pinpoint the issue on Win2003 (II 6), I have > >>>created a real simple ASP.NET page that has a > Cookie > >>>Count that displays both on a page and in the log > >>>file. I use the same logging as my other web > app. > >>>The logging works fine with the Cooke Count web > >>>application. Both web apps are using the same > account > >>>access and pool (Application Pool is set to Local > >>>System). I have yet to find the issue. > >>> > >>>--- Ron Grabowski <[EMAIL PROTECTED]> wrote: > >>> > >>>>What appenders are you using? If you're using an > >>>>appender that allows > >>>>for a "bufferSize" parameter, have you tried > setting > >>>>that to 1, 0, > >>>>and/or -1? > >>>> > >>>>Does log4net's internal log contain anything > >>>>different when running > >>>>under IIS 6.0? > >>>> > >>>>Have you verified that the account log4net uses > to > >>>>log has the same > >>>>level of permission on both servers? > >>>> > >>>>--- Peter Landis <[EMAIL PROTECTED]> wrote: > >>>> > >>>>>I have recently added logging via log4net to my > >>>>>asp.net application running on a Windows 2003 > >>>> > >>>>Server > >>>> > >>>>>platform (IIS 5.0). Log4net has been working > >>>>>flawlessly until recently when I have been > >>>> > >>>>migrating > >>>> > >>>>>my application over to Windows 2003 Server on > IIS > >>>> > >>>>6.0. > >>>> > >>>>>Log4Net is only logging the first requests and > >>>> > >>>>also > >>>> > >>>>>sporadically. It seems as if something is > caching > >>>> > >>>>the > >>>> > >>>>>log request. Has anyone experience similar > issues > >>>> > >>>>and > >>>> > >>>>>if so what suggestions can you provide me? > >>>>> > >>>>> > >>>>> > >>>>>Discover Yahoo! > >>>>>Find restaurants, movies, travel and more fun > for > >>>> > >>>>the weekend. Check > >>>> > >>>>>it out! > >>>>>http://discover.yahoo.com/weekend.html > >>>>> > >>>>> > >>>> > >>>__________________________________ > >>>Yahoo! Mail Mobile > >>>Take Yahoo! Mail with you! Check email on your > mobile phone. > >>>http://mobile.yahoo.com/learn/mail > >>> > >> > > ---------- > Scanned for viruses by ClamAV > __________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs
