Visual Studio 2010: Object Reference Not Set to an Instance of Object

Asked By 0 points N/A Posted on -
qa-featured

Hi Experts,

I am running Windows 7 Pro with 4GB RAM.  I used my Admin account to install all my software applications on this machine.

I am not able to succeed in getting my Microsoft Visual Studio 2010 work with Windows Phone developer tools.  I am getting an error message. I have tried to repair both MS VS and Windows Phone developer tools, but in vain.

Any ideas?

                                                                            

Microsoft Visual Studio 2010 Express for Windows Phone

Object reference not set to an instance of an object.

SHARE
Answered By 0 points N/A #114826

Visual Studio 2010: Object Reference Not Set to an Instance of Object

qa-featured

 

Hello,

This issue occurs, when a project contains a web reference, or when you save a project with XML attributes and they are not in their valid project path. To solve this problem, avoid using attribute characters that are not valid, like # and & characters in your project path.

To reproduce this issue:

  • Start your Visual Studio on the file menu, click new ; then project and click Visual Basic projects ; lastly click your Windows application. Type the following location box , then OK  Drive_Letter:My&Directory
  • In the solution Explorer ; click Windows application1 ; then add ; then click add user control, in the user control under templates section ; click open.
  • On the menu view ; click tool box ;  then add the text box to the user control ; then in the build menu, click build solution.
  • In the solution Explorer,  click Windows application1 ; the add and click Inherit control ; then inherited user control ; then in the templates section click open. On the Inheritance Picker, click user control1.
  • Lastly in the add web reference box, type the web service in the URL and click add reference. Almost done.  In your file menu, close all documents and open the usercontrol2.vb in your designer.

Related Questions