无法连接到 OpenId 提供商
当我在 Visual Studio 中运行时,我能够连接到 openid 提供程序,但是如果我在 IIS 中托管应用程序,我将无法连接到 openid 提供程序。 (我在 CreateRequest 中遇到错误)
请让我知道必须在 IIS 中完成哪些设置,以便我可以连接到 Openid 提供程序。以下是我收到的错误
[InvalidOperationException:序列 不包含任何元素] System.Linq.Enumerable.First(IEnumerable`1 来源)+336 DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(标识符 用户提供的标识符)
[ProtocolException:没有 OpenID 端点 成立。] DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(标识符 用户提供的标识符)
When I run in visual studio I am able to connect to openid provider, But if I host app in IIS ,I am not able to connect to openid provider. (I am getting error at CreateRequest)
Please let me know what settings has to be done in IIS so that I can connect to the Openid Provider. Below is the error I am getting
[InvalidOperationException: Sequence
contains no elements]
System.Linq.Enumerable.First(IEnumerable`1
source) +336
DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(Identifier
userSuppliedIdentifier)[ProtocolException: No OpenID endpoint
found.]
DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(Identifier
userSuppliedIdentifier)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这通常是防火墙问题。如果您的 IIS 和 VS 在同一台计算机上,那么这可能不适用于您,但您可以考虑这样做。
否则,找出失败原因的最佳方法是 激活日志记录并设置详细的日志记录设置。您也可以只将随附的 OpenID RP 示例之一安装到您的 IIS,因为它们有一个内置的 TracePage.aspx 文件,可以向您显示详细日志记录。如果示例也失败,日志应该告诉您原因。如果示例没有失败,那么这也会告诉您有关您网站的一些信息,并且登录您的网站有望提供进一步帮助。
另请查看Azure 网站上的“未找到 OpenID 端点”< /a> 因为这可能是一个重复的问题。
This is usually a firewall issue. That may not apply to you if your IIS and VS are on the same machine, but it's something that you may consider.
Otherwise the best way to find out why it failed is to activate logging and set a verbose logging setting. You could alternatively just install one of the shipping OpenID RP samples to your IIS, as they have a built-in TracePage.aspx file that will display verbose logging to you. If the samples also fail, the logs should tell you why. If the samples don't fail, then that will tell you something about your web site as well, and logging on your site will hopefully help further.
Please also check out "No OpenID endpoint found" on Azure Website as this may be a duplicate question.