473,395 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
1 3962
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Shyam | last post by:
Hi, Can someone help me in resolving the following issue An unhandled exception has occured in your application.If you click Continue,the application will ignore this error and attempt to...
3
by: Dinçer | last post by:
Hello, I am trying to call a simple web service from .net environment. The service gets an array parameter. When I run it, it becomes the error: Server was unable to process request. --> Array...
1
by: Ariel Larraburu | last post by:
I have an aplicaciòn that shows to next error: "Server was unable to process request --> ?". without webreferences it works correctly. that it means '?' error ?
0
by: Dinçer | last post by:
Hello, I am trying to call a simple web service from .net environment. The service gets an array parameter. When I run it, it becomes the error: Server was unable to process request. --> Array...
0
by: Dica | last post by:
Hi all I've got a java microEdition client trying to make soap requests to my .Net service. i keep getting "Server was unable to process request..." err msg when attempting to make the request....
2
by: UJ | last post by:
I've got a web service that is giving me back this error message. The directory is Windows\Temp and I have given everybody complete access to this directory and am still getting the error. Any...
2
by: Grande | last post by:
Hi all, I recently changed a webservice to take in a third parameter, and it hasn't been working since. I get the following error at runtime: "Server was unable to process request. ---Method...
1
by: Florencio Laso | last post by:
Hola to all: We have created a service web that works perfectly while is invoked in the localhost of the machine of development or from the IE of the servant where we have published it....
3
by: weird0 | last post by:
This is the exception that I get when i create a webserivce obj and call. The error comes on the webmethod call, when it opens a connection to the db. How do I fix it? What is the solution to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.