.NET Code Samples, Data Access, and Other Musings
We all make mistakes ... I know I certainly do. Today I made one that only set me back about 10 minutes ... but I admit I felt silly after I realized what I did wrong. Today I created a new VS 2008 project, added an Entity Data model (aka EDMX file) to the project, and began setting up my EDM. When i went to build the project I received a ton of errors about invalid references. So I checked my references folder and bam! ... several dll's were marked is invalid.
The quick and easy solution to this problem was that I forgot to set the target framework of my project to .NET Framework 3.5.
Once this is done everything is happy as Ferris Bueller in a parade.
About John Papa
John (C# MVP and MCSD.NET) has been working with Microsoft distributed architectures for over 10 years. He has enterprise experience architecting and developing with .NET technologies including ASP.NET as well as WebForms using both C# and VB.NET. He is a baseball fanatic who spends most of his summer nights rooting for the Yankees with his family and his faithful dog, Kadi. John has authored or co-authored several books on ADO, ADO.NET, XML, and SQL Server, is the author of the Data Points column in MSDN Magazine, has presented MSDN WebCasts and can often be found speaking at industry conferences such as VSLive and DevConnections.