Html.OpenIdSelectorScripts helper method throwing NullReferenceException

允我心安 提交于 2019-12-01 03:26:23

问题


I keep getting this error when trying to navigate to my LogOn page:

System.NullReferenceException: Object reference not set to an instance of an object

The line of code that is throwing the error on is:

<%= Html.OpenIdSelectorScripts(this, options, null)%>. 

Does anyone know why this line of code would be throwing an error?


回答1:


Have a look at this link: Gougle-Groups/DotNetOpenAuth: "I suspect though that you're missing the OpenIdDiscover named route in your global.asax.cs file."



来源:https://stackoverflow.com/questions/4138534/html-openidselectorscripts-helper-method-throwing-nullreferenceexception

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