小编efl*_*ing的帖子

"ViewBag"这个名称在当前上下文中不存在

我正在尝试在我的应用程序中使用ViewBag,我有所有最近的dll,最新版本的MVC 3,但我仍然得到错误:

"当前上下文中不存在'ViewBag'这个名称"

我甚至已经卸载然后重新安装了MVC 3但是没有任何变化.

另外,我不相信这些dll会出现在GAC中.

可能是我的问题?或者如何将dll添加到GAC?

dll gac viewbag asp.net-mvc-3

86
推荐指数
5
解决办法
14万
查看次数

TFS错误:"源代码管理 - 无法访问数据库"

我正在使用TFS与Visual Studio 2010 Ultimate并在我尝试打开我的解决方案时收到此错误:

The associated source control plug-in is not installed or could not be initialized. Common causes for this error include server unavailability and/or incorrect workspace mappings.

我与TFS的连接和我们必须使用的VPN工作,我已经在另一台机器上尝试过它们并没有问题.我的机器上只有一个问题.它也没有持有任何绑定.

问题是什么?我安装Visual Studio的东西?

tfs visual-studio-2010

16
推荐指数
1
解决办法
2万
查看次数

Html.OpenIdSelectorScripts抛出NullReferenceException的helper方法

尝试导航到LogOn页面时,我不断收到此错误:

System.NullReferenceException:未将对象引用设置为对象的实例

抛出错误的代码行是:

<%= Html.OpenIdSelectorScripts(this, options, null)%>. 
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么这行代码会抛出错误?

c# asp.net asp.net-mvc nullreferenceexception dotnetopenauth

6
推荐指数
1
解决办法
635
查看次数