Исключение типа 'System.Web.HttpUnhandledException' было сгенерировано.
Step into: Stepping over non-user code 'System.Web.UI.Control.OnLoad'
Step into: Stepping over non-user code 'System.Web.UI.Control.LoadRecursive'
Step into: Stepping over non-user code 'System.Web.UI.Control.LoadRecursive'
Step into: Stepping over non-user code 'System.Web.UI.Control.LoadRecursive'
Step into: Stepping over non-user code 'System.Web.UI.Page.ProcessRequestMain'
Step into: Stepping over non-user code 'System.Web.UI.Page.ProcessRequest'
Step into: Stepping over non-user code 'System.Web.UI.Page.ProcessRequest'
Step into: Stepping over non-user code 'System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute'
Step into: Stepping over non-user code 'System.Web.HttpApplication.ExecuteStep'
A first chance exception of type 'System.NullReferenceException' occurred in App_Code.2x2ldwnl.dll
A first chance exception of type 'System.Exception' occurred in App_Code.2x2ldwnl.dll
A first chance exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll
A first chance exception of type 'System.NullReferenceException' occurred in App_Code.2x2ldwnl.dll
A first chance exception of type 'System.Exception' occurred in App_Code.2x2ldwnl.dll
Мой Usercontrol также хорошо компилируется, когда строится на собственном, но все строит нормально, но затем вылетает, когда я запускаю отладку.
Есть идеи, что может быть причиной этого?
Код пользователя:
Call Function
protected void DisplaySendMessageQuestion(string title, int messageType)
{
UCResetPasswordDisplay.SetVisible(true);
UCResetPasswordDisplay.MessageType = messageType.ToString();
UCResetPasswordDisplay.Title = title;
}
Пользовательский контроль aspx.cs
public partial class UserControls__ResetPasswordPopup : System.Web.UI.UserControl
{
public event EventHandler YesResetClick;
public event EventHandler NoResetClick;
protected void Page_Load(object sender, EventArgs e)
{
PnlAddConfirmation.CssClass = "PanelResetPass";
PnlAddConfirmation.CssClass = "PanelYesNoCore";
txtUsername.Focus();
}
public string MessageType
{
get { return this.lblMessageType.Text; }
set { this.lblMessageType.Text = value; }
}
public string UserData
{
get { return this.txtUsername.Text; }
set { this.txtUsername.Text = value; }
}
public string Title
{
get { return this.lblEventTitle.Text; }
set { this.lblEventTitle.Text = value; }
}
public bool IsVisible
{
get { return this.PnlAddConfirmation.Visible; }
set { this.PnlAddConfirmation.Visible = value; }
}
public string ErrorMessage
{
get { return this.LblEventNotification.Text; }
set { this.LblEventNotification.Text = value; }
}
public void SetVisible(bool Visible)
{
PnlAddConfirmation.Visible = Visible;
// PnlScreenCover.Visible = Visible;
}
protected void ChangePasswordButton_Click(object sender, EventArgs e)
{
if (YesResetClick != null)
{
YesResetClick(this, EventArgs.Empty);
}
}
protected void ImgBtnCancel_Click(object sender, EventArgs e)
{
if (NoResetClick != null)
{
NoResetClick(this, EventArgs.Empty);
}
}
}