Microsoft Visual Studio Object reference not set

Asked By 0 points N/A Posted on -

Here is a strange error message which appears only on my PC. Hope someone has a solution for this.

I have Windows Vista operating system on which Microsoft Visual 2008 is installed. I have been working on a project for some time and when I try to right click on the particular project and import DataBase schema, I get the object reference error message.

Microsoft Visual Studio

Object reference not set to an instance of an object.

I have tried to perform the same action on one of my friends PC and that seems to work fine.

Any ideas?

Answered By 0 points N/A #114663

Microsoft Visual Studio Object reference not set


You get an object reference not set to an instance of an object when the project you open contains an inherited user control. To address the issue follow the steps below.

  1. Launch Visual Studio 2008.
  2. Click “File menu”, under “New”, choose “Project”, and select “Windows Application” under the “VB Projects”.
  3. Type “Drive_Letter:My&Directory” and click OK. This will be done under “Location box"
  4. On the Solution Explorer, select “Windows Application1” and right click it, select Add "User Control", from the “Templates” click the “User Control” click Open.
  5. Click the “ToolBox” under the View menu.
  6. From the control designer for user, Add the “TextBox” control.
  7. Click “Build Solution” underthe Build menu.
  8. Select “Windows Application1” and right click it from the “Solution Explorer”, select the “Add Inherited Control” under “Add” option. On Templates click the “User Control” and click open.
  9. Select the “UserControl1” that you previously made under the “Inheritance Picker”. Click OK.
  10. Select “Windows Application1” under the “Solution Explorer” and click the “Add Web” for Reference.
  11. Under the “Web Reference” type the “WebService” that is used from URL box, click the “Add Reference”

Click “Close” under file menu to close the documents.

Login/Register to Answer

Related Questions