CSLA .NET

From Rockford Lhotka's Expert C# 2005 and VB 2005 Business Objects books

Welcome to CSLA .NET Sign in | Join | Help
in Search

PTracker project and PTMembershipProvider

Last post 10-09-2008, 6:37 AM by Rizshe. 0 replies.
Sort Posts: Previous Next
  •  10-09-2008, 6:37 AM 27102

    PTracker project and PTMembershipProvider

    Hi,

    I have created my own membership provider implementing the same sort of functionality apart that I have .net version 3.5

    The only change I have is that I'm passing the username in code in the membership provider class

    public override bool ValidateUser(String username, String password)

    {

    String myusername = "myuser";

    bool result = UserPrincipal.Login(myusername);

    HttpContext.Current.Session["CslaPrincipal"] = Csla.ApplicationContext.User;

    return result;

    }

    The problem is that this code doesn't run at all. Since in .net framework 3.5 you don't have app_code folder so I even tried creating the folder and then check it but this doesn't work. My webconfig is the same as PT Web so i don't really see where i'm going wrong?

    Any ideas?
    Cheers

    Rizwan

View as RSS news feed in XML

Please contact Magenic for your .NET consulting and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Powered by Community Server, by Telligent Systems