If you are using the Visual Studio 2008 extensions for Windows SharePoint Services for the first time you may see this error when you attempt to deploy.
Object reference not set to an instance of an object.
This will be listed as on line 1 when you try to deploy your solution to your local SharePoint site. It is likely to happen on Windows Server 2008.
It happens because of User Access Control and to resolve it you just need to run Visual Studio 2008 as Administrator. Right click on Visual Studio 2008 to do this.