L
littleccguy
I notice there are quite a few posts regarding this lab. Even still, I
could not find what I was looking for.
I have run into a few bumps but have been able to work through them.
now I am stumped. I get the following error:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.NullReferenceException: Object reference
not set to an instance of an object.
at AuthorsService.GetAuthors() in
c:\inetpub\wwwroot\AuthorsWebService1\App_Code\Service.vb:line 21
--- End of inner exception stack trace ---
Here are the two segments of code.
Where debug highlights the error:
Private Sub btnLoadData_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLoadData.Click
Dim ws As New AuthorsWinClient.localhost.AuthorsService
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
AuthorData.Merge(ws.GetAuthors) 'Here is where the error is
highlighted
End Sub
Where the error points to (Service.vb:line 21)
'Visual Basic
<WebMethod()> _
Public Function GetAuthors() As dsAuthors
Dim authors As New dsAuthors
daAuthors1.Fill(authors) ' Line 21
Return authors
End Function
I am a student so go a little easy on me
Also, any MS people out there have any idea when these labs will be
edited, if need be, for VS 2005?
Oh yeah,
Windows XP SP2
VS 2005 Standard
SQL 2005 Standarad w/SP1
Thanks!!!
could not find what I was looking for.
I have run into a few bumps but have been able to work through them.
now I am stumped. I get the following error:
System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.NullReferenceException: Object reference
not set to an instance of an object.
at AuthorsService.GetAuthors() in
c:\inetpub\wwwroot\AuthorsWebService1\App_Code\Service.vb:line 21
--- End of inner exception stack trace ---
Here are the two segments of code.
Where debug highlights the error:
Private Sub btnLoadData_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnLoadData.Click
Dim ws As New AuthorsWinClient.localhost.AuthorsService
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
AuthorData.Merge(ws.GetAuthors) 'Here is where the error is
highlighted
End Sub
Where the error points to (Service.vb:line 21)
'Visual Basic
<WebMethod()> _
Public Function GetAuthors() As dsAuthors
Dim authors As New dsAuthors
daAuthors1.Fill(authors) ' Line 21
Return authors
End Function
I am a student so go a little easy on me
Also, any MS people out there have any idea when these labs will be
edited, if need be, for VS 2005?
Oh yeah,
Windows XP SP2
VS 2005 Standard
SQL 2005 Standarad w/SP1
Thanks!!!