Object reference not set to an instance of an object
Hi, this post is more a reminder to myself but for a long time i kept getting the error “Object reference not set to an instance of an object” whilst running my asp.net websites even though the object was not null. I searched google and found my answer at http://forums.aspfree.com/net-development-11/common-causes-of-object-reference-not-set-to-an-instance-45799.html. You simply need to run (using the command prompt):
aspnet_regiis -i
Hope this helps.