When opening a dbml file created in a pre-RTM version of Visual Studio 2008, you will probably see this error message:
Cannot load '[filepath].dbml': Error encountered, check Error List window for details.
Looking in the error list window, you might see the following errors:
Build failed due to validation errors in [filepath].dbml. Open the file and resolve the issues in the Error List, then try rebuilding the project.
and
There is no Unicode byte order mark. Cannot switch to Unicode.
Opening up the dbml file in the XML editor, the intellisense does not point out any validation errors.
I couldn't see the problem.
Then I created a new LINQ to SQL file and looked at the xml,noticing that the encoding was:
<?
while the old file had
So I modified the old file changing the encoding to utf-8 and voila, my project compiled and the file opened up in the designer.
See my speaking schedule for more events
User Group Leader
Hosted by:
Powered by: newtelligence dasBlog 2.0.7226.0
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2008, Julie Lerman
E-mail