Our Forum has Moved

This site is our old forum and is only here for achive until we get proper 301 redirects setup to make Google happy.

Please use our new community site - Our Umbraco - which contains an improved forum, documentation wiki, package repository and a member locator.

Go to Our Umbraco now

Learn everything about Umbraco
Public Access - Simple Protection error Options
synsat
Posted: Sunday, June 21, 2009 9:22:06 PM
Rank: Newbie

Joined: 1/25/2009
Posts: 12
Hi All,

Anyone else experiencing this problem?

"Login" template created and macro inserted as below:

Code:

<umbraco:Macro LogOutOnly="0" LoggedInText="test" SignOutLinkText="test2" macroAlias="MemberLogin" Alias="MemberLogin" runat="server"></umbraco:Macro>



within form tags.

Text type document called "Login" created with "Login" above as template.

Now if preview the "Login" document, the login form appears, which, I guess means that the macro is used correctly, BUT

when I right-click on a node, choose Public Access, Single user protection, I get an error when I press Update after entering login and pass, and giving "Login" page as both login and error page.

The error I get is the following:

Code:

Server Error in '/' Application.
--------------------------------------------------------------------------------

No node exists with id '0'
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.ArgumentException: No node exists with id '0'

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:


[ArgumentException: No node exists with id '0']
   umbraco.cms.businesslogic.CMSNode.setupNode() +363
   umbraco.cms.businesslogic.member.MemberType.GetByAlias(String Alias) +127
   umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +76
   System.Web.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +224
   System.Web.Security.Membership.CreateUser(String username, String password, String email) +30
   System.Web.Security.Membership.CreateUser(String username, String password) +6
   umbraco.presentation.umbraco.dialogs.protectPage.protect_Click(Object sender, CommandEventArgs e) +361
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +105
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


Any ideas please?

Regards

The forum has moved

This forum is no longer in use, so you can't reply to this message - please go to Our Umbraco

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.