对象引用未设置为Visual Studio 2013上的对象错误的实例 [英] Object reference not set to an instance of an object error on Visual Studio 2013

查看:99
本文介绍了对象引用未设置为Visual Studio 2013上的对象错误的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013 Pro版本中收到此错误弹出框.如果在运行项目时将某些东西粘贴到.cshtml页面上,我会得到它.目前,我正在MVC 5项目上使用它.我只是想知道这是Visual Studio 2013的错误,还是我弄乱了Visual Studio.我的VS是正版版本.我的计算机上还安装了2010、2012和2013 Express.

I am getting this error pop up box in Visual Studio 2013 Pro version. I get it if i paste something onto a .cshtml page while running the project. Currently I am getting it on an MVC 5 project. I am just wondering it is a bug to Visual Studio 2013 or I just messed up my Visual Studio. My VS is genuine version. I also have 2010, 2012 and 2013 Express installed on my machine.

更新:

我发现在CSS块中使用Razor语法时会发生这种情况.

I found out it happens when I have Razor syntax in the CSS block.

推荐答案

我遇到了类似的问题.我刚刚重新启动了Visual Studio,然后就可以了!

I had a similar problem. I just restarted visual studio, and then it worked!

这篇关于对象引用未设置为Visual Studio 2013上的对象错误的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆