I have created one hanler "autologin.ashx". In the handler i need extranet login. For that i have used the following code.
Dynamicweb.Modules.UserManagement.User user = Dynamicweb.Modules.UserManagement.User.Authenticate("FRANKMARCKSCHEFFEL@FBAUFZUEGE.DE", "fep4jewn", Dynamicweb.Modules.UserManagement.User.PermissionLevels.Frontend);
try
{
Dynamicweb.Security security = new Dynamicweb.Security();
security.ExtranetLogin(user.UserName, user.Password);
}
But an error is getting "Object reference not set to an instance of an object. Void set_Current(Dynamicweb.Modules.UserManagement.PagePermissionLevels, Dynamicweb.Modules.UserManagement.User) Dynamicweb at Dynamicweb.Modules.UserManagement.User.set_Current(PagePermissionLevels level, User value) at Dynamicweb.Security.ExtranetLogin(String username, String password, Boolean onlyActive) "
Anyone please help to resolve this problem. Im stuck with it.