Re: Error when editing content
I'm not sure why you are getting that error.
Are you using the sources from the zip download or from svn?
I assume you are using MS SQL?
Can you set a breakpoint in the page load event and step through the code and see exactly where its blowing up and which object is null? If you do this, make sure you set Default.aspx as the startup page. If you go directly to HtmlEdit.aspx there won't be an UrlReferrer. Request.UrlReferrer gets the previous page and we store it in ViewState so we can go back when editing is finished. In normal operation you should never get to the edit page except from a content page.
I do think I should modify the code at the bottom of btnUpdate_Click and btnDelete_Click
if(ViewState["UrlReferrer"] != null)
just to be a little more robust, but like I say normally you don't go directly to this page so it shouldn't be null
But your error seems to be happening in PageLoad which is weird. Are you using the default skin? Any unusual configuration about your development machine?