[Fix]-Object reference not set to an instance of an object
With .NET framework 2.0, VS 2005 and Windows Server 2003, the ASP.NET website works well locally but deployed either using a Web Deployment Project or even the simple Publish Web Site command error occurs as follows.
ASPNETCOMPILER, Line 1, Character 1, which simply says "Object reference not set to an instance of an object".
Check the BIN folder the already compiled files from there.
Disable the antivirus in your machine to fix the issue.
Go to the folder containing the ASP.NET website. Right-click on the folder, choose properties and in the general tab, click Advanced and under the Compress or Encrypt attributes section.
Ensure that the option Compress contents to save disk space is unchecked. If the option is active, uncheck it and apply the same for all subfolders of the project.