If you are using Dynamic Data in ASP.NET to generate some basic entry web site you will get this error if you publish your web site and you have a form with the same name as a table in you data context class. e.g. Order.aspx and System.Data.Linq.Table Order.
No problem when running fron VS which sent me up the wrong path initially