• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Visual Basic Developer Center
 
 
Home
 
 
Library
 
 
Learn
 
 
Downloads
 
 
Support
 
 
Community
 
 
Forums
 
 
 
Visual Basic Developer Center > Visual Basic Forums > Visual Basic General > Object reference not set to an instance of an object
Ask a questionAsk a question
Search Forums:
  • Search Visual Basic General Forum Search Visual Basic General Forum
  • Search All Visual Basic Forums Search All Visual Basic Forums
  • Search All MSDN Forums Search All MSDN Forums
 

AnswerObject reference not set to an instance of an object

  • Friday, September 09, 2005 5:14 PMpapa flo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    hiya,

    i get the error "Object reference not set to an instance of an object" when adding a new web form to a web site

    this is what i am doing
    i launch vs 2005 beta 2
    i create a new web site
    on the solutions explorer, i right click on the site and select "add new item"
    i select "web form" on the dialog box, and click "add"
    and that's when i get the error

    any ideas?

    f
    • ReplyReply
    • QuoteQuote
     

Answers

  • Tuesday, September 13, 2005 7:53 PMKohler Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

    I found a bug report dealing with this issue:
    http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=c89412dd-5d71-4c93-9a3d-704df84fbdee

    There are a list of workarounds given.  I tried the following and it worked for me:
    Workaround Description:
    Find the HKEY_CURRENT_USER\Software\Classes registry key and clear the default value

    Workaround Steps:
    Open registry editor
    Go to HKEY_CURRENT_USER\Software\Classes
    Double click the default value
    Delete the value that's in there
    Click OK

    • ReplyReply
    • QuoteQuote
     

All Replies

  • Friday, September 09, 2005 6:19 PMspotty Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    Looks to be working in latest builds.

    Can you select any other items - except web forms and they add to the solution ?(ie. is it only web forms that are causing this error or all new items)

    Do you have any other options on the add form selected ?


    • ReplyReply
    • QuoteQuote
     
  • Tuesday, September 13, 2005 7:37 PMKohler Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0
    I'm seeing what appears to be the exact same problem. 

    I can add other items (like a web config) without any problem.  Also, if I deselect "Place code in separate file" it works fine.
    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement