ProjectTracker Mvc3UI - is LogOff missing

ProjectTracker Mvc3UI - is LogOff missing

Old forum URL: forums.lhotka.net/forums/t/10716.aspx


tiago posted on Monday, September 26, 2011

We get a 404 error for URI /Account/LogOff

and there is no sign of LogOff in Mvc3UI.Controllers.AccountController

RockfordLhotka replied on Monday, September 26, 2011

Interesting... I wonder if I accidentally deleted some of the template code, or if Microsoft has a broken template. Probably me...

Blarm replied on Friday, April 19, 2013

Just downloaded the code (06-AspMvc-110607.zip) for the eBook (UsingCsla4-06-AspMvc.pdf) and have the same problem.

Was this ever fixed or can the LogOff.cshtml file be downloaded from elsewhere.

RockfordLhotka replied on Monday, April 22, 2013

The issue isn't a missing file, it is a couple lines of incorrect/missing code in the AccountController class. Specifically the LogOff method needs to redirect as shown here:

https://github.com/MarimerLLC/csla/blob/master/Samples/NET/cs/ProjectTracker/Mvc3UI/Controllers/AccountController.cs

Copyright (c) Marimer LLC