By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,397 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,397 IT Pros & Developers. It's quick & easy.

Web services Error- Server was unable to process request ---> object refference not set to an instance of an object

P: n/a
I have a web service that runs fine on my local machine and works fine
with a VB .Net project remotely, but when I try to run using Access
2002 I get the following error.
Server was unable to proccess request ---> object refference not set to
an instance of an object

Following is the web method:
Public Structure vbVINVariables
Public mModel As String
Public mYear As String
'Public mMake As String
'Public m4x4 As Boolean
'Public m1ton As Boolean
'Public mComm As Boolean
'Public mTurbo As Boolean
End Structure
<WebMethod()> _
Public Function VinDecode(ByVal VIN As String) As vbVINVariables
Dim VP As VP_LIB.VinPower
Dim S As String
Dim N As Integer

On Error GoTo ErrorHandler

VP = New VP_LIB.VinPower

If VP.VPError.Number = 53 Then 'BINs not exists in App.Path
VP.DataPath = "c:/hosting/webservices/data"
ElseIf VP.VPError.Flag Then
VP = Nothing
MsgBox("Fatal Error")
Exit Function
End If

VP.SetDeveloperID("0200")
N = VP.DecodeVIN(VIN, S)

VinDecode.mYear = VP.GetValue(1)
VinDecode.mModel = VP.GetValue(2)

VP = Nothing
Exit Function

ErrorHandler:

S = VP.VPError.Kind & " Error - '" & VP.VPError.Description &
"' [in Module " & VP.VPError.Origin & "]"
VP = Nothing
MsgBox(S)
End Function

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The code that you posted looks like the VB.NET code that defines the
web service itself. This code certainly cannot be located inside a MS
Access module but rather inside an ASP.NET web service. Therefore,
should we assume instead that you are trying to *call* the web service
from MS Access? If so, this would be the more relevant code to post.
Please clarify how you are doing this. Are you using the SOAP
libraries available in Visual Basic?

Bill E.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more Microsoft Access / VBA Questions on Bytes