【发布时间】:2009-12-21 22:48:45
【问题描述】:
使用以下示例:http://www.west-wind.com/Weblog/posts/899303.aspx
下面一行……
return req.RedirectingResponse.AsActionResult();
呈现字符串“DotNetOpenAuth.Messaging.OutgoingWebResponseActionResult”。 这是在发布的行中作为 ActionResult 返回的类。有谁知道为什么我将类名作为字符串而不是实际重定向?
提前谢谢!
【问题讨论】:
-
你的函数的返回类型是什么?
-
ActionResult... 请看 url 中的示例... 函数是 [AcceptVerbs(HttpVerbs.Post | HttpVerbs.Get), ValidateInput(false)] public ActionResult OpenIdLogOn(string returnUrl) { ...}
-
IMO 链接中提供的代码示例没有任何问题,DotNetOpenAuth 库也没有。我已经检查了几次代码,并且没有很多代码可能是错误的。我认为 error 在路由或 web.config 中的某个地方...问题是在哪里。
标签: asp.net-mvc dotnetopenauth actionresult