Developer forum

Forum » Development » Dynamicweb.Security not working

Dynamicweb.Security not working


Reply
Hi

I am developing a custom login but when trying to login the user using Security.ExtranetLogin I get an exception and redirects to a random page but the user i logged in. See code:
Dynamicweb.Security security = new Dynamicweb.Security();
security.ExtranetLogin(user.UserName, user.Password);



This happens when upgraded Extranet to the new Usermanagement. But if i go back an uses Extranet modul (ID 42) it works just fine.

Kind regards
/Magnus

Replies

   
Reply
Actually it is not an exception message because it cant access it. The message I am getting is : Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

But when using the old Extranet/intranet module it works fine.

/Magnus

 

You must be logged in to post in the forum