简体   繁体   English

没有行号和类别的错误:“对象引用未设置为对象的实例。”

[英]Error with no line number and class: “Object reference not set to an instance of an object.”

When I am publishing my ASP.NET website, VS 2010 shows an error: 当我发布ASP.NET网站时,VS 2010显示错误:

Error 1 Object reference not set to an instance of an object. 错误1对象引用未设置为对象的实例。

There is not neither a class name nor a line number. 既没有类名,也没有行号。

What could cause this error? 是什么导致此错误?

Another point, the web site works with no error when debugging. 还有一点,该网站在调试时不会出错。

After restarting Visual Studio, the error message has gone. 重新启动Visual Studio后,错误消息消失了。 Thanks to C Baurer 感谢C Baurer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误“对象引用未设置为对象的实例。” - Error 'Object reference not set to an instance of an object.' 你调用的对象是空的。 错误 - Object reference not set to an instance of an object. Error 你调用的对象是空的。 错误 - Object reference not set to an instance of an object. Error 错误“未将对象引用设置为对象的实例。” 对于 CreateUserWithEmailAndPasswordAsync - Error "Object reference not set to an instance of an object." for CreateUserWithEmailAndPasswordAsync 你调用的对象是空的。 请协助解决错误 - Object reference not set to an instance of an object. Please Help to solve error SqlConnection出现错误“对象引用未设置为对象的实例。” - Error “Object reference not set to an instance of an object.” for SqlConnection 表读取错误:“对象引用未设置为对象的实例。” - error in table reading :“Object reference not set to an instance of an object.” C#,“对象引用未设置为对象的实例。”错误 - C#, “Object reference not set to an instance of an object.” error 在mvc项目中插入错误:{“对象引用未设置为对象的实例。”} - Insertion in mvc project error: {“Object reference not set to an instance of an object.”} 单元测试错误“对象引用未设置为对象的实例。” - Unit Testing error “Object reference not set to an instance of an object.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM