1

我正在尝试使 dotnetopenauth oauth2“windows live”示例工作,如下所示: https ://github.com/DotNetOpenAuth/DotNetOpenAuth/tree/master/samples/OAuthClient

在 WindowsLive.aspx.cs 页面中,这两行不起作用:

windowsLiveClient.ProcessUserAuthorizationAsync

windowsLiveClient.PrepareRequestUserAuthorizationAsync

当我运行该页面时,它显示错误:

Compiler Error Message: CS1061: 'DotNetOpenAuth.ApplicationBlock.WindowsLiveClient' does  
not contain a definition for 'ProcessUserAuthorizationAsync' and no extension method 
'ProcessUserAuthorizationAsync' accepting a first argument of type 
'DotNetOpenAuth.ApplicationBlock.WindowsLiveClient' could be found (are you missing a 
using directive or an assembly reference?)

我正在使用 dotnetopenauth 终极 4.3.1.13153 dll。

我还将从 DotNetOpenAuth.ApplicationBlock 文件夹中获得的这三个文件放在我的 app_code 文件夹中:

IOAuth2Graph.cs
WindowsLiveClient.cs
WindowsLiveGraph.cs

作为初学者,我很抱歉。我花了几天时间尝试了一百万种不同的东西,但我无法超越这一点。

4

0 回答 0