Parse Error


For Orchard 1.6 on Login page occurs

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The foreach block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.

Source File:
Zeile 1: @using Orchard.ContentManagement;
Zeile 2: @{
Zeile 3: var userCanRegister = @WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().UsersCanRegister; Zeile 4: var enableLostPassword = @WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().EnableLostPassword; Source file: /Orchard.new/Themes/Bootstrap/Views/LogOn.cshtml Line: 2
Closed Nov 1, 2012 at 8:45 PM by psenechal
This has been fixed in the latest release that just went live on the Orchard site. I'll be updating the CodePlex site with new code ASAP