I've the same problem with you, better you check the file first. Just simply right click on the file and chose "Convert to web application". If there is still an error, then you must check all control that you've declared in the file.
I assumed there are controls that have the same name even the name are case sensitive
ie.
protected System.Web.UI.WebControls.DataGrid DataGrid1;
protected System.Web.UI.WebControls.DataGrid Datagrid1;