protected void OnLogOnButtonClick(object sender, EventArgs e) { string str = null; string str1 = null; IEtwActivity etwActivity = PowwaEvents.EventCorrelator.StartActivity(); using (etwActivity) { try { LogOn.FormInfo formInfo = this.ValidateForm(); using (formInfo) { this.CreateSession(formInfo); } } catch (PowwaValidationException powwaValidationException1) { PowwaValidationException powwaValidationException = powwaValidationException1; this.ShowError(powwaValidationException.Message); } catch (Exception exception1) { Exception exception = exception1; LogOn.GetLogonErrorMessage(exception, out str, out str1); this.ShowError(str); object[] objArray = new object[1]; objArray[0] = str1; PowwaEvents.PowwaEVENT_LOGON_FAILURE(this.userNameTextBox.Value, SessionHelper.GetSourceIPAddressRemoteAddr(), SessionHelper.GetSourceIPAddressHttpXForwardedFor(), string.Format(CultureInfo.CurrentCulture, Resources.LogonError_LogMessage, objArray)); Thread.Sleep(0x3e8); } } }