N/APosted on - 08/14/2011
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.
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.
Launch Visual Studio 2008.
Click “File menu”, under “New”, choose “Project”, and select “Windows Application” under the “VB Projects”.
Type “Drive_Letter:My&Directory” and click OK. This will be done under “Location box"
On the Solution Explorer, select “Windows Application1” and right click it, select Add "User Control", from the “Templates” click the “User Control” click Open.
Click the “ToolBox” under the View menu.
From the control designer for user, Add the “TextBox” control.
Click “Build Solution” underthe Build menu.
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.
Select the “UserControl1” that you previously made under the “Inheritance Picker”. Click OK.
Select “Windows Application1” under the “Solution Explorer” and click the “Add Web” for Reference.
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.