Hi everyone,
i've been trying to figure out this bug for a day now :
whenever a user clicks on the verification link in the email sent right after he registers,
we get this error :
Could not find a part of the path 'D:\SERVICES\websites\Notrefamille\forum\resources\'.
any idea where this can come from ?
here's the code inside the approve.aspx.cs page :
public void ValidateKey_Click([NotNull] object sender, [NotNull] EventArgs e)
{
DataRow userRow = this.GetRepository<CheckEmail>().Update(this.key.Text).Rows[0];
string userEmail = userRow["Email"].ToString();
bool keyVerified = userRow["ProviderUserKey"] != DBNull.Value;
this.approved.Visible = keyVerified;
this.error.Visible = !keyVerified;
if (!keyVerified)
{
return;
}
// approve and update e-mail in the membership as well...
MembershipUser user = UserMembershipHelper.GetMembershipUserByKey(userRow["ProviderUserKey"]);
if (!user.IsApproved)
{
user.IsApproved = true;
}
// update the email if anything was returned...
if (user.Email != userEmail && userEmail != string.Empty)
{
user.Email = userEmail;
}
// tell the provider to update...
this.Get<MembershipProvider>().UpdateUser(user);
// now redirect to main site...
this.PageContext.LoadMessage.AddSession(this.GetText("EMAIL_VERIFIED"), MessageTypes.Information);
// default redirect -- because if may not want to redirect to login.
YafBuildLink.Redirect(ForumPages.forum);
it seems to happen whenever a user is on a different session ID, than the one he/she used to subscribe