AdoNetAppender does not work on a IIS 7 website using Windows authentication 
-----------------------------------------------------------------------------

                 Key: LOG4NET-266
                 URL: https://issues.apache.org/jira/browse/LOG4NET-266
             Project: Log4net
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 1.2.10
         Environment: Windows Server 2008, IIS 7, ASP.Net Framework v4.0, Sql 
Server 2008, Windows Authentication Activated
            Reporter: Kaider
            Priority: Critical


When the Windows Authentication is deactivated, the AdoNetAppender works 
properly.

Howerver, once the Windows authentication is activated, the AdoNetAppender 
start working properly and then, after a few seconds, it is aborted and the 
following error message is retrieved:

log4net:ERROR [AdoNetAppender] Failed in DoAppend
System.ObjectDisposedException: Safe handle has been closed
   at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& 
success)
   at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, 
Boolean& success)
   at Microsoft.Win32.Win32Native.GetTokenInformation(SafeTokenHandle 
TokenHandle, UInt32 TokenInformationClass, SafeLocalAllocHandle 
TokenInformation, UInt32 TokenInformationLength, UInt32& ReturnLength)
   at 
System.Security.Principal.WindowsIdentity.GetTokenInformation(SafeTokenHandle 
tokenHandle, TokenInformationClass tokenInformationClass)
   at System.Security.Principal.WindowsIdentity.get_User()
   at System.Security.Principal.WindowsIdentity.GetName()
   at System.Security.Principal.WindowsIdentity.get_Name()
   at log4net.Core.LoggingEvent.get_Identity()
   at log4net.Core.LoggingEvent.FixVolatileData(FixFlags flags)
   at log4net.Appender.BufferingAppenderSkeleton.Append(LoggingEvent 
loggingEvent)
   at log4net.Appender.AppenderSkeleton.DoAppend(LoggingEvent loggingEvent)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to