LogonUser failed ! error code : 1326

Last post 10-17-2009, 10:13 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  10-12-2009, 11:18 AM 56351

    LogonUser failed ! error code : 1326

    Support:

     
    A couple months back you assisted me with getting the control to work on a load balanced server using a network share as the temp directory.  With the username, password and domain credentials in the web.config, everything has been working fine...
     
    This morning I'm looking at the logs and I'm seeing the following exception:

     

    Message : Exception of type 'System.Web.HttpUnhandledException' was thrown.

     

    Source : System.Web

     

    StackTrace :    at System.Web.UI.Page.HandleError(Exception e)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       at System.Web.UI.Page.ProcessRequest()

       at System.Web.UI.Page.ProcessRequest(HttpContext context)

       at ASP.secure_questionnaire_guarantee_q3_aspx.ProcessRequest(HttpContext context)

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

     

    TargetSite : Boolean HandleError(System.Exception)

     

    Environment.StackTrace :    at System.Environment.get_StackTrace()

       at LehmanQuestionnaire.Objects.ErrorNotification.PrepAndSendEmail(Exception Ex)

       at LehmanQuestionnaire.Global.Application_Error(Object sender, EventArgs e)

       at System.EventHandler.Invoke(Object sender, EventArgs e)

       at System.Web.HttpApplication.RaiseOnError()

       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)

       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)

       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

     

     

     

    Message : LogonUser failed ! error code : 1326

     

    Source : CuteWebUI.AjaxUploader

     

    StackTrace :    at CuteWebUI.j.a.Impersonate()

       at CuteWebUI.j.a()

       at CuteWebUI.UploaderBase.g()

       at CuteWebUI.UploaderBase.f()

       at CuteWebUI.UploaderBase.b(HtmlTextWriter A_0)

       at CuteWebUI.Uploader.Render(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)

       at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)

       at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

       at System.Web.UI.Page.Render(HtmlTextWriter writer)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

    TargetSite : Void Impersonate()

     

    Environment.StackTrace :    at System.Environment.get_StackTrace()

       at LehmanQuestionnaire.Objects.ErrorNotification.PrepAndSendEmail(Exception Ex)

       at LehmanQuestionnaire.Global.Application_Error(Object sender, EventArgs e)

       at System.EventHandler.Invoke(Object sender, EventArgs e)

       at System.Web.HttpApplication.RaiseOnError()

       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)

       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)

       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

     

     I don't know if the problem is related to what changed back in late August (see link above) but they seem to appear related.  I have however received "Message : Unable to write to folder:\\computerName\shareName.  Please change the permissions of this folder or specify a temporary folder using TempDirectory property or setting temporary file location in web.config." when it was configured incorrectly so I believe it's something different (computer and share name removed intentionally).  Also, thousands of uploads are working correctly and I only see 5 exceptions but they all happened today within the same minute on two different pages.

     
    Any ideas on this one?
     
    Thanks,
    David

     

  •  10-17-2009, 10:13 PM 56458 in reply to 56351

    Re: LogonUser failed ! error code : 1326

    David,
     
    Did you get such error again ?
     
    that code call Windows kernal API with the username/password and it return failed code , we currently have no idea to improve this kind random issue.
     
    Regards,
    Terry
View as RSS news feed in XML