Hi, I've made a class called MIMembershipProvider. Here is the code: 1 class MyImpactMembershipProvider : MembershipProvider 2 { 3 4 public override bool ValidateUser(String username, String password) 5 { 6 String myusername = "nrk16"; 7 //username = "nrk16"; 8 bool result = UserPrincipal.Login(myusername); 9 10 HttpContext.Current.Session["CslaPrincipal"] = Csla.ApplicationContext.User; 11 return result; 12 } 13 14 #region Non-Implemented Members 15 16 // the following members must be implemented due to the abstract class MembershipProvider, 17 // but not required to be functional for using the Login control. 18 public override bool ChangePassword(string username, string oldPassword, string newPassword) 19 { 20 throw new NotSupportedException("The method or operation is not implemented."); 21 } 22 23 public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) 24 { 25 throw new NotSupportedException("The method or operation is not implemented."); 26 } 27 28 public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status) 29 { 30 throw new NotSupportedException("The method or operation is not implemented."); 31 } 32 33 public override bool DeleteUser(string username, bool deleteAllRelatedData) 34 { 35 throw new NotSupportedException("The method or operation is not implemented."); 36 } 37 38 public override bool EnablePasswordReset 39 { 40 get { throw new NotSupportedException("The method or operation is not implemented."); } 41 } 42 43 public override bool EnablePasswordRetrieval 44 { 45 get { throw new NotSupportedException("The method or operation is not implemented."); } 46 } 47 48 public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords) 49 { 50 throw new NotSupportedException("The method or operation is not implemented."); 51 } 52 53 public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords) 54 { 55 throw new NotSupportedException("The method or operation is not implemented."); 56 } 57 58 public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords) 59 { 60 throw new NotSupportedException("The method or operation is not implemented."); 61 } 62 63 public override int GetNumberOfUsersOnline() 64 { 65 throw new NotSupportedException("The method or operation is not implemented."); 66 } 67 68 public override string GetPassword(string username, string answer) 69 { 70 throw new NotSupportedException("The method or operation is not implemented."); 71 } 72 73 public override MembershipUser GetUser(string username, bool userIsOnline) 74 { 75 throw new NotSupportedException("The method or operation is not implemented."); 76 } 77 78 public override MembershipUser GetUser(object providerUserKey, bool userIsOnline) 79 { 80 throw new NotSupportedException("The method or operation is not implemented."); 81 } 82 83 public override string GetUserNameByEmail(string email) 84 { 85 throw new NotSupportedException("The method or operation is not implemented."); 86 } 87 88 public override int MaxInvalidPasswordAttempts 89 { 90 get { throw new NotSupportedException("The method or operation is not implemented."); } 91 } 92 93 public override int MinRequiredNonAlphanumericCharacters 94 { 95 get { throw new NotSupportedException("The method or operation is not implemented."); } 96 } 97 98 public override int MinRequiredPasswordLength 99 { 100 get { throw new NotSupportedException("The method or operation is not implemented."); } 101 } 102 103 public override int PasswordAttemptWindow 104 { 105 get { throw new NotSupportedException("The method or operation is not implemented."); } 106 } 107 108 public override MembershipPasswordFormat PasswordFormat 109 { 110 get { throw new NotSupportedException("The method or operation is not implemented."); } 111 } 112 113 public override string PasswordStrengthRegularExpression 114 { 115 get { throw new NotSupportedException("The method or operation is not implemented."); } 116 } 117 118 public override bool RequiresQuestionAndAnswer 119 { 120 get { throw new NotSupportedException("The method or operation is not implemented."); } 121 } 122 123 public override bool RequiresUniqueEmail 124 { 125 get { throw new NotSupportedException("The method or operation is not implemented."); } 126 } 127 128 public override string ResetPassword(string username, string answer) 129 { 130 throw new NotSupportedException("The method or operation is not implemented."); 131 } 132 133 public override bool UnlockUser(string userName) 134 { 135 throw new NotSupportedException("The method or operation is not implemented."); 136 } 137 138 public override void UpdateUser(MembershipUser user) 139 { 140 throw new NotSupportedException("The method or operation is not implemented."); 141 } 142 143 public override string ApplicationName 144 { 145 get 146 { 147 throw new NotSupportedException("The method or operation is not implemented."); 148 } 149 set 150 { 151 throw new NotSupportedException("The method or operation is not implemented."); 152 } 153 } 154 155 #endregion 156 } 157 } The problem i'm haviing is that this code needs to be placed in App_Code folder but I don't think that App_code is working as it should in earlier versions. Any ideas? Cheers Rizwan Mark the answer, it will help us and moderators