473,769 Members | 6,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Numb er = 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.SetDeveloper ID("0200")
N = VP.DecodeVIN(VI N, S)

VinDecode.mYear = VP.GetValue(1)
VinDecode.mMode l = VP.GetValue(2)

VP = Nothing
Exit Function

ErrorHandler:

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

Nov 13 '05 #1
1 3995
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
1882
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 continue.If you click Quit,the application will be shut down immediately. Server was unable to process request--> Failed to register assembly 'XYZComponents, Version=x.x.xxx,Culture=neutral, PublicKeyToken=XXXXXXXX'.-->
3
4960
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 cannot be null. Parameter name: bytes I am sure that my array is not null. Besides, its name isn't "bytes".
1
1473
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
3212
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 cannot be null. Parameter name: bytes I am sure that my array is not null. Besides, its name isn't "bytes".
0
8052
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. The method runs fine from a web browser, so i suspect the problem is with the java app. i added a simple "Hello World" method to the service for testing purposes and the java client calls and receives the service fine. the problem appears to be...
2
2689
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 suggestions? TIA - Jeff
2
7326
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 not found: 'SCR.Domain.Users.User SCR.Service.Users.UserService.ChangePassword(Int32, System.String, System.DateTime)'."
1
7214
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. Nevertheless, if we create an application client who does a call to the same one, it returns the following mistake to us: System. Web. Services. Protocols. SoapException: Server was unable to process request.---Object reference not set to an instance of an...
3
24241
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 this? System.Web.Services.Protocols.SoapException: Server was unable to process request. ---System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file g:\inetpub\wwwroot \BankingService\App_Data\BankingDb.mdf failed....
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.