473,396 Members | 2,076 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,396 software developers and data experts.

Webservice runs fine on localhost but error on server

Hi everyone,

My webservice runs fine on my local machine.
But on the webserver I've got the following error:

SOAPException was unhandled by user code
Server was unable to process request. ---Object reference not set to an
instance of an object.

Wat is the cause of this error?
Is it security?

thanks!

Filip
Jul 7 '06 #1
2 2810
I assume you can't debug on the web server. If that is the case, try adding
functionality to the Application_Error event handler in Global.asax.cs to
either log or email the stack trace to you.

In order to be sure you get the exception, you should create an Exception
from Server.GetLastError() and then recursively get the
Exception.InnerException so that you get to the real source of the exception.
That is the stack trace you'll want to see.

HTH

Dale
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Filip De Backer" wrote:
Hi everyone,

My webservice runs fine on my local machine.
But on the webserver I've got the following error:

SOAPException was unhandled by user code
Server was unable to process request. ---Object reference not set to an
instance of an object.

Wat is the cause of this error?
Is it security?

thanks!

Filip
Jul 9 '06 #2
Please check if there are any references to a local resource.

Alternatively, you can run the application in a debug mode locally, and
check every exception that has been raised. A small typo error also could
lead to this issue.

"Filip De Backer" wrote:
Hi everyone,

My webservice runs fine on my local machine.
But on the webserver I've got the following error:

SOAPException was unhandled by user code
Server was unable to process request. ---Object reference not set to an
instance of an object.

Wat is the cause of this error?
Is it security?

thanks!

Filip
Jul 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
8
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data...
10
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations...
9
by: Nick Gilbert | last post by:
Hi, I'm trying to create a system whereby my desktop application submits it's order to an online server using a webservice (pretty standard!). So, I added a new project to my solution to...
0
by: tshad | last post by:
I have a simple Webservice (the infamous Hello program). This file is in wwwroot and gets called fine. ********************************************************************** <!DOCTYPE HTML...
7
by: Amirallia | last post by:
Hi, I consume my webservice with the IE browser and all is ok when I call it with one browser. But when I call it a the same time with two browsers, the IE page tells me that the apllication...
6
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton...
2
by: cmrhema | last post by:
Hi, I have a webservice, which works fine. I am working in windows xp. I hosted the webservice by integrating with .mpp file using COM component and it works successfully. Now I uploaded into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
0
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...
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...
0
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...

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.