Html.OpenIdSelectorScripts helper方法投掷的NullReferenceException [英] Html.OpenIdSelectorScripts helper method throwing NullReferenceException
问题描述
我不断收到试图浏览到我的登录页面时,这个错误:
I keep getting this error when trying to navigate to my LogOn page:
System.NullReferenceException:对象不设置到对象的实例
System.NullReferenceException: Object reference not set to an instance of an object
code被投掷错误的行是:
The line of code that is throwing the error on is:
<%= Html.OpenIdSelectorScripts(this, options, null)%>.
有谁知道为什么这条线code将是抛出一个错误?
Does anyone know why this line of code would be throwing an error?
推荐答案
有一个在此链接:<一个href=\"http://groups.google.com/group/dotnetopenid/browse_thread/thread/5f4c9e4e68608676/dac714e031d6a14e?pli=1\">Gougle-Groups/DotNetOpenAuth:
的我怀疑,虽然你错过在你的的global.asax.cs
文件中的 OpenIdDiscover
命名的路由。的
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."
这篇关于Html.OpenIdSelectorScripts helper方法投掷的NullReferenceException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!