0
我有如果用户得到正确注册,我重定向他到应用程序的主页系统上RedirectToAction挂不重定向
return RedirectToAction("Index", "Home");
在我的应用程序
[HttpPost]
public virtual ActionResult Register(RegisterModel model) {
if (!ModelState.IsValid) {
//Invalid - redisplay form with errors
return View(model);
}
try {
MembershipUser mu = _manager.RegisterUser(model);
//Send confirmation email here
}
catch (RegistrationException rex) {
ModelState.AddModelError("", rex.Message);
}
return RedirectToAction("Index", "Home");
}
注册用户下面的代码
我有这个代码工作在我的开发箱和我的登台服务器。但是,当我将它发布到可通过互联网访问的生产服务器上时,它会在发送电子邮件后挂上最后一次呼叫,而不会重定向用户。
有什么想法?
当你说它挂起,你的意思是线程挂起或用户体验是一个地方邮件被发送,但他们没有看到重定向? – 2010-12-02 13:39:33