OpenID reference problem in asp.net

倾然丶 夕夏残阳落幕 提交于 2019-12-12 06:10:23

问题


I am trying to use OpenID in my website using asp.net_c#. I am working on asp.net forms website with asp.net v4. I am following the articles: http://danhounshell.com/blog/adding-openid-to-your-web-site-in-conjunction-with-asp-net-membership/ and http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/

On the login button part I am getting referencing error saying the ClaimsRequest() type or namespace could not be found. I've already referenced:

using DotNetOpenAuth;
using DotNetOpenAuth.OpenId;
using DotNetOpenAuth.OpenId.RelyingParty;

I am using the latest DotNetOpenAuth.dll, how should it be referenced then?


回答1:


as you can see ClaimsRequest Class is part of DotNetOpenAuth.OpenId.Extensions.SimpleRegistration namespace

http://docs.dotnetopenauth.net/v3.3/html/T_DotNetOpenAuth_OpenId_Extensions_SimpleRegistration_ClaimsRequest.htm



来源:https://stackoverflow.com/questions/6236108/openid-reference-problem-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!