Update model from database and generate model from database causes "Object reference not set to an instance of an object"

I have recently experienced that I suddenly could not update my model from database, or generate a new model with the Entity Framework designer.

The generate dialog would simply not appear. So I created an empty model instead, and tried to update from database, and I got the error: ""Object reference not set to an instance of an object".

After reinstalling Visual Studio and SP1 without luck, I found the solution:

  1. 1) Open the "Visual Studio 2008 Command Prompt" (with administrator privileges if Vista)
  2. 2) devenv /resetskippkgs
  3. 3) Close Visual Studio
  4. 4) devenv /setup
  5. 5) Run Visual Studio

It forces Visual Studio to merge the resource metadata that describes menus, toolbars, and command groups from all VSPackages available, and I was up and running again.

Wednesday, May 20, 2009 7:06:50 PM (Romance Standard Time, UTC+01:00)
Hi Friends, i am new here and .
I am from Canada.
I am from Turkmenistan and learning to write in English, tell me right I wrote the following sentence: "These resources include checkpoint, a powerful system to optimize research efficiency, as well as turbotax business, which guides you step by step through."

With best wishes :D, Honey.
All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview