我遇到的Object reference not set to an instance of an object.错误的解决办法

症状:

Server Error in '/' Application. -------------------------------------------------------------------------------- Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

我是在.NET2.0环境,查资料,搜索引擎找了半天,最后Framework2.0修复一下就可以了。

你可能感兴趣的:(.net开发技巧)