【发布时间】:2013-02-09 00:22:28
【问题描述】:
我正在尝试让标准 Visual Studio 2012 MVC4 Internet 模板和 oAuth 工作,但它不会!
所以这里是重新创建的简单步骤。
- 创建新的 MVC4 Inernet 应用程序
- 在包管理器控制台中执行:update-package
- 在 AuthConfig.cs 文件中取消注释 OAuthWebSecurity.RegisterGoogleClient()(我的印象是 Google oAuth 不需要密钥,因此在 AuthConfig.cs 文件中取消注释这一行将启用它。)李>
- F5 运行应用程序
此时我看到以下错误:
Error when entering login page:
Unhandled exception at line 115, column 5 in http://localhost:63180/Scripts/jquery.unobtrusive-ajax.js
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support property or method 'live'
- 点击首页的登录链接
- 点击 Google 按钮
此时我收到此错误:
ProtocolException was unhandled by user code
No OpenID endpoint found
【问题讨论】: