Web Service not working on web server

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Robert Bull (robert.bull_at_wbp.org)
Date: 08/13/04


Date: 13 Aug 2004 11:18:27 -0700

I have an asp.net app that consumes a web service that is working fine
on my local machine. I have put the service and the app on our web
server. If I make a call to a function in the service that returns a
boolean variable, the communication works fine, but if I try to return
a dataset I get the following error:

'Server was unable to process request. --> Object reference not set to
an instance of an object.'

It looks like the code is choking in the following function:

Public Function GetPersonForACRChange(ByVal lEmployee As Long) As
System.Data.DataSet
Dim results() As Object = Me.Invoke("FunctionName", New Object()
{lEmployee})
Return CType(results(0),System.Data.DataSet)
End Function

Anybody have any ideas. Thanks in advance.

-Rob



Relevant Pages

  • Having trouble changing a web service URL at runtime
    ... I'm playing with a simple smartphone app that communicates with a server ... The web service is generated by setting up a .Net Remoting ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: webservice to expose existing app functionality
    ... and manage your web services, then you need to create a web service project ... applicaiton makes a poor multi-user server because the console application ... benefit is that once you refactor your app in this way, ... >create a webservice without creating a new webservice project within ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Web service in EXE
    ... the 'server' app is no different that any other ... will serve them up as well by putting the web service dll in my applications ... winforms exe so that I do not require the dll for my web service. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Web Service 401 Authorization Err
    ... would explain why the app works when on the local machine, ... asp.net server, which can use them itself when talking to the web service. ... credentials propagation is the problem. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Host a Web Service in a Windows Forms Application
    ... Ok, so you want to connect an app, running on the pocket PC, to another ... > Unfortunately, the server cannot be a Web Server, but a simple Windows ... > The only way to easily communicate for a Pocket PC is the Web Service. ...
    (microsoft.public.dotnet.framework.webservices)