login page + nullreferenceexception

Vote:
 
Hej! Jag håller på med utveckling av ett intranet och har problem med vad jag tror är login sidan. Jag skulle göra ändringar i denna sida (lägga till text på själva sidan), efter omkompilering får jag följande fel när jag försöker gå till login sidan: Server Error in '/' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. 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.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] EPiServer.Util.LoginBase.SetupForm() +37 Taxi.Intranet.Login.Page_Load(Object sender, EventArgs e) +5 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300 Jag har tagit bort de ändringar jag gjort, startat om IIS, lagt in sidan på nytt, allt med samma resultat, vad kan detta bero på? Mvh //Mats
#17484
Mar 25, 2008 19:33
Vote:
 
Hi, first, you're not allowed to change anything in the util, edit or admin directories. If you want to change the login page you should start with the one in the templates directory, and change the loginUrl attribute of the forms element in web.config: I'm not quite sure why you get the NullReferenceException you're mentioning, but I suspect you're missing a textbox with the id Username in your markup. Steve
#18286
Mar 25, 2008 19:43
Vote:
 
The issue has been solved. The problem was that variables were added(by visual studio) in the code-behind for the new login page for the different controls on the page, like username and password. Removing those solved the problem.
#18287
Mar 25, 2008 19:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.