Delete your designer.cs Right click the dbml file in solution explorer and select open with. Choose XML Editor. When you save the file within visual studio, it automatically generates a new designer.cs file.