When I am publishing my ASP.NET website, VS 2010 shows an error:
Error 1 Object reference not set to an instance of an object.
There is not neither a class name nor a line number.
What could cause this error?
Another point, the web site works with no error when debugging.