System.Data.DataSetExtensions Config Error in Visual Studio 2008 RTM

By Chris Gaskell

I got the exception shown below when I opened an application that was developed under VS 2008:

ASP.NET runtime error: Could not load file or assembly ‘System.Data.DataSetExtensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ or one of its dependencies. The system cannot find the file specified

What’s happened is there is no more an assembly System.Data.DataSetExtensions with version number 2.0. There is a new version for the same assembly name under 3.5.0.0.

To resolve the problem, simply right-click on the web application, properties, then remove the reference to the 2.0.0.0 assembly.

Then, right-click on the web application solution, Add Reference, locate the System.Data.DataSetExtensions and add a reference to it. You may also need to update the entry web / app.config file under the <assemblies> tag. Update the version to 3.5.0.0

12 Responses to “System.Data.DataSetExtensions Config Error in Visual Studio 2008 RTM”

  1. Iván Says:

    This error also will ocurr if you have installed .NET 3.5 prereleased version that ships with System.Data.DataSetExtensions 2.0

    If that’s the case, you need to update your .NET 3.5 framework.

  2. Marcelo Says:

    Thanks a lot. I was getting frustrated with this error until I found your blog.

  3. » System.Data.DataSetExtensions Config Error in Visual Studio 2008 RTM Knowledge Base: My Knowledge base - everthing I have found that might be useful in .NET, C#, SQL Server 2005, PHP and Actionscript 2.0 / 3.0 etc Says:

    [...] System.Data.DataSetExtensions Config Error in Visual Studio 2008 RTM Posted in January 19th, 2008 by Jimbob in .NET http://cgaskell.wordpress.com/2007/12/03/systemdatadatasetextensions-config-error-in-visual-studio-2... [...]

  4. TSmith Says:

    Had this problem as well. Thanks for the info.

  5. Ben Says:

    Thank you! this worked!

  6. Greg Says:

    Thanks!

    I don’t get though how it happened – I created the app in 3.5, when i reopened it, got this error.

  7. dstelow Says:

    Thanks for the tip.

  8. Jody Says:

    Great tip man. Saved me some noticeable bug hunting!

  9. Nick Says:

    Question related to this subject…

    I’ve been looking all over the place for a solution that will help me load a DataSet with LINQ. I’m using link to pull data from a database. It works great when I’m returning sets based on the table objects LINQ creates, but when I want to return a more custom set of columns from a couple tables via a link, I can’t for the life of me figure out how to convert that query to a DataSet or DataTable or some type of List.

    All I’ve found is that I probably need “using System.Data.DataSetExtensions;”, but I can’t even seem to figure out what benefit that’s giving me. What am I using that will need that??

  10. Serch Says:

    look to install framework 3.5 fine install if not reeinstall aplication framework

  11. NISHA SHAH Says:

    System.Data.DataSetExtensions 3.5.0.0 but still the same problem “Error 1 Could not load file or assembly ‘vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\ajaxtoolkit\TemplateVSI\TemplateVSI.csproj 66 5 TemplateVSI
    please give me a solution

  12. CaptainSB Says:

    The problem comes when you then need to create an application that will work in Windows 2000 that can only work with .NET 2.0 I have set the Framework to 2.0 but, when I come to build the project (VB.NET Express) It tells me that the DataSetExtension and LINQ files V2.0 are missing – I can’t use the 3.5 versions can I as these are not compatible with Win2k… or are they?… who knows???

Leave a Reply