Build (web): Object reference not set to an instance of an object
2010-08-02 12:28
701 查看
Messages below were from Output Window of Visual Studio 2008:
Build (web): Object reference not set to an instance of an object.
when building the solution, the build will fail with the error "/: Build (web): Object reference not set to an instance of an object." The error has no associated file, line, column or project information. The weird thing about the error is that it will go away on successive rebuilds and doesn't seem to result in any run-time errors that we've come across once the build is successful. Sometimes the error will pop only once, sometimes 3-4 times, but eventually the build will finish successfully and then seems to build just fine each time after. I haven't been able to nail down a pattern as to why and when the error will happen, and since it always eventually builds it hasn't been a critical problem for us. Just an annoyance. But one that I want gone for obvious reasons.
------------------
The first thing I'd try would be to increase the compiler verbosity. This can be set in the Visual Studio options - e.g. "Tools->Options->Projects and Solutions-Build and Run->MSBuild project build output verbosity"
------------------
Try using Rebuild Solution instead of Build Solution. You may need to add Rebuild Solution from Tools > Customize.
------------------
Please check the files in the /bin directory, it mostly because of the *.compiled files incorrectly copied into the /bin directory. Just delete them. also you can see the call stacks of this error by using "aspnet_compiler.exe" and the "-errorstack" switch.
------------------
http://stackoverflow.com/questions/209465/tracking-down-intermittent-object-reference-not-set-to-an-instance-of-an-object
Build (web): Object reference not set to an instance of an object.
when building the solution, the build will fail with the error "/: Build (web): Object reference not set to an instance of an object." The error has no associated file, line, column or project information. The weird thing about the error is that it will go away on successive rebuilds and doesn't seem to result in any run-time errors that we've come across once the build is successful. Sometimes the error will pop only once, sometimes 3-4 times, but eventually the build will finish successfully and then seems to build just fine each time after. I haven't been able to nail down a pattern as to why and when the error will happen, and since it always eventually builds it hasn't been a critical problem for us. Just an annoyance. But one that I want gone for obvious reasons.
------------------
The first thing I'd try would be to increase the compiler verbosity. This can be set in the Visual Studio options - e.g. "Tools->Options->Projects and Solutions-Build and Run->MSBuild project build output verbosity"
------------------
Try using Rebuild Solution instead of Build Solution. You may need to add Rebuild Solution from Tools > Customize.
------------------
Please check the files in the /bin directory, it mostly because of the *.compiled files incorrectly copied into the /bin directory. Just delete them. also you can see the call stacks of this error by using "aspnet_compiler.exe" and the "-errorstack" switch.
------------------
http://stackoverflow.com/questions/209465/tracking-down-intermittent-object-reference-not-set-to-an-instance-of-an-object
相关文章推荐
- WebAdaptor Object reference not set to an instance of an object.
- 当在一个siliverlight 2.0工程中 添加webservice时 遇到错误:'Object reference not set to an instance of an object' 解决办法
- 奇怪的 Object reference not set to an instance of an object
- Object reference not set to an instance of an object
- Object reference not set to an instance of an object.
- Error with Stsadm Command-Object reference not set to an instance of an object
- 我遇到的Object reference not set to an instance of an object.错误的解决办法
- Object reference not set to an instance of an object.
- 新建silverlight项目出现object reference not set to an instance of an object的错误
- SQLite应用程序启动报错:Object reference not set to an instance of an object.
- SQLServer2005打开表时出现“Object reference not set to an instance of an object. (SQLEditors)”错误的解决办法
- This qt version uses an unsupported makefile generator object reference not set to an instance of an
- ArcGIS AddIN异常之:object reference not set to an instance of an object
- [Bug]Object reference not set to an instance of an object.
- unity3D报NullReferenceException: Object reference not set to an instance of an object
- 新建silverlight项目出现object reference not set to an instance of an object问题
- VS2010 出现错误提示“Error Creating Control - Object reference not set to an instance of an objec” 的解决方法
- Object reference not set to an instance of an object
- silverlight beta2.0安装成功后新建silverlight项目出现object reference not set to an instance of an object的解决办法
- Object reference not set to an instance of an object.请教, 这是涉及那方面的错误啊?谢谢!