When I try to publish my website (publishing has been working perfectly well for ages), I am getting an error. The output window is no help; the last line of the Pre-compiling stage is:
Building directory '/myPath/'.: Publication (web): Object reference is not set to an instance of an object.
There is no code showing to debug.
How can I debug this and find out what is causing this error? The website runs just fine in debug mode locally.
In response to John Saunders' comment below: Version is VS2008 9.0.30729 (appears to be the latest version; I've checked for updates) and .Net 3.5 SP1.
I've tried publishing to both a remote website server and a local (my computer) server. Publishing a dummy website with only a 'default.aspx' file works fine.