Unable to Redirecting to a subdomain after logIn from another subdomain in MVC4

Posted by Nash on Stack Overflow See other posts from Stack Overflow or by Nash
Published on 2012-08-30T12:15:40Z Indexed on 2012/08/30 21:38 UTC
Read the original article Hit count: 251

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

© Stack Overflow or respective owner

Related posts about asp.net-mvc-3

Related posts about c#-4.0