Error after giving admin "editor" permissions

May 26, 2009 at 11:07 PM
Edited May 26, 2009 at 11:08 PM

After clicking "Editor" next to username "Admin" in the Users tab of the Admin section, I received the error below.  Please advise!  Thanks.


A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property.

Source Error:

Line 44: 		{
Line 45: Login1.LoggedIn += new EventHandler(Login1_LoggedIn);
Line 46: Login1.FindControl("username").Focus();
Line 47: }
Line 48: }


Source File: d:\HTTP\66.223.49.239\Blog\login.aspx.cs    Line: 46

Stack Trace:

[InvalidOperationException: A form tag with runat=server must exist on the Page to use SetFocus() or the Focus property.]
System.Web.UI.Page.SetFocus(Control control) +2647074
System.Web.UI.Control.Focus() +23
login.Page_Load(Object sender, EventArgs e) in d:\HTTP\66.223.49.239\Blog\login.aspx.cs:46
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
BlogEngine.Core.Web.Controls.BlogBasePage.OnLoad(EventArgs e) +13
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082