Unable to Redirecting to a subdomain after logIn from another subdomain in MVC4
- by Nash
Expect behaviour ::
User has to login from aut.mycompany.local and after login he must be redirected to my.mycompany.local.
Redirecting Code after validating the user credentials
return RedirectToAction("Index", @"plportal/account", new { subdomain = "my" });
Actual Subdomain URL
http://my.mycompany.local/plportal/account
But I'm getting belwo error:
System.DirectoryServices.DirectoryServicesCOMException: There is no such object on the server.
PLease help me and thanks in advance