ASP.Net System.NullReferenceException

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yvrmurari
    New Member
    • Aug 2008
    • 4

    ASP.Net System.NullReferenceException

    How to eliminate this error, I am assigning value to a webservice field to Save that. I am getting error at the last line

    Dim SupportCase As SupportCase
    SupportCase = New SupportCase()
    SupportCase.com pany.name = "53580 Test1"

    Thanks in advance
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I would guess that whatever object type "company" is in SupportCase.com pany, is not being intialized with a new constructor
    Maybe
    SupportCase.com pany = new Company();

    Comment

    Working...