Visual Studio 2008 SP1 Beta br0ke my LINQ-to-SQL - Rudi Grobler

Visual Studio 2008 SP1 Beta br0ke my LINQ-to-SQL

As indicated in my previous article, I recently reinstalled my PC... One of the "updates" I made was installing Visual Studio 2008 SP1 Beta! Well... As Murphy would have it... I needed to change some stuff on a older project I have been working on. I opened the project, and I needed to update some of my LINQ-2-SQL entities just to find I can't open LINQ or compile my application!

Here is the error message I received:

The custom tool 'MSLinqToSQLGenerator' failed.  Could not retrieve the current project. xyz.dbml

After searching the forums, I finally found a solution... For some unexplained reason, the LINQ environment is not loaded on startup! To fix it, remove everything in the following registry tree:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0

Here is the forum entry

Hi all,

I had the same problem.

I deleted 'just' the values underneath the subkey:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Packages

It seemed that MSVS had decided not to load my designer tool on startup and marked it to be skipped next startup.

After deleting these values, everything worked again.

Greets,

John.

And now it works again!!!

Published Thursday, June 05, 2008 2:26 PM by rudi

Comments

# Visual Studio 2008 SP1 Br0ke my LINQ-to-SQL

You've been kicked (a good thing) - Trackback from DotNetKicks.com

Thursday, June 05, 2008 2:44 PM by DotNetKicks.com

# Dew Drop – June 6, 2008 | Alvin Ashcraft's Morning Dew

Pingback from  Dew Drop – June 6, 2008 | Alvin Ashcraft's Morning Dew

# re: Visual Studio 2008 SP1 Beta br0ke my LINQ-to-SQL

A better solution might be to open the VS cmd prompt and run the following:

devenv /ResetSkipPkgs

Then open your solution/project, open up the LinqToSql (*.dbml) file and save it (to trigger the code generator) and you should be good from there.

Monday, June 09, 2008 3:31 AM by warren

# re: Visual Studio 2008 SP1 Beta br0ke my LINQ-to-SQL

Thank you Warren!

Regards,

Rudi

Monday, June 09, 2008 8:22 AM by rudi

# Wöchentliche Rundablage: Silverlight 2, WPF, ASP.NET MVC, jQuery… | Code-Inside Blog

Pingback from  Wöchentliche Rundablage: Silverlight 2, WPF, ASP.NET MVC, jQuery… | Code-Inside Blog

# Weekly Links: Silverlight 2, WPF, ASP.NET MVC, jQuery… | Code-Inside Blog International

Pingback from  Weekly Links: Silverlight 2, WPF, ASP.NET MVC, jQuery… | Code-Inside Blog International