473,670 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why no excpetion returned to browser when thrown from web service

Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim
Nov 23 '05 #1
6 1895
By default. The detail error message will only be shown when you running on
local server. In your case, if you try to access your deployment server from
another machine, you can only see a 500 Error, unless you test on the
deployment server.

If you want the remote request can see the detail error page, you can switch
it on in your web.config. I can't remember which property to change. but you
look under the <debug> section or look for more information on debugging web
service from msdn library.
--
Can You?You Can.
"Tim Reynolds" wrote:
Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim

Nov 23 '05 #2
By default. The detail error message will only be shown when you running on
local server. In your case, if you try to access your deployment server from
another machine, you can only see a 500 Error, unless you test on the
deployment server.

If you want the remote request can see the detail error page, you can switch
it on in your web.config. I can't remember which property to change. but you
look under the <debug> section or look for more information on debugging web
service from msdn library.
--
Can You?You Can.
"Tim Reynolds" wrote:
Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim

Nov 23 '05 #3
Hello
Please make the following change
<customErrors mode="RemoteOnl y" />
in the web.config file so that you can see the exact error message on the
browser on your server

"BillyLiu00 7" wrote:
By default. The detail error message will only be shown when you running on
local server. In your case, if you try to access your deployment server from
another machine, you can only see a 500 Error, unless you test on the
deployment server.

If you want the remote request can see the detail error page, you can switch
it on in your web.config. I can't remember which property to change. but you
look under the <debug> section or look for more information on debugging web
service from msdn library.
--
Can You?You Can.
"Tim Reynolds" wrote:
Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim

Nov 23 '05 #4
Hello
Please make the following change
<customErrors mode="RemoteOnl y" />
in the web.config file so that you can see the exact error message on the
browser on your server

"BillyLiu00 7" wrote:
By default. The detail error message will only be shown when you running on
local server. In your case, if you try to access your deployment server from
another machine, you can only see a 500 Error, unless you test on the
deployment server.

If you want the remote request can see the detail error page, you can switch
it on in your web.config. I can't remember which property to change. but you
look under the <debug> section or look for more information on debugging web
service from msdn library.
--
Can You?You Can.
"Tim Reynolds" wrote:
Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim

Nov 23 '05 #5
Thanks - but I tried <customErrors mode="RemoteOnl y" /> in the web.config on
the remote server. I tested the web service 2 ways 1) logged in to the
remote server via remote desktop & 2) from my pc - in both cases - same
result as previous - the Page Cannot Be displayed and the HTTP 500 - Internal
server error. It doesn't seem to matter if I am testing this web service
from the server directly or from my PC - either way the same results.

However, you pointed me in the right direction. I then tried "Off' instead
of remote only and achieved the desired result - finally my exception
displayed. Thanks for the tip.

Tim

"Deepak" wrote:
Hello
Please make the following change
<customErrors mode="RemoteOnl y" />
in the web.config file so that you can see the exact error message on the
browser on your server

"BillyLiu00 7" wrote:
By default. The detail error message will only be shown when you running on
local server. In your case, if you try to access your deployment server from
another machine, you can only see a 500 Error, unless you test on the
deployment server.

If you want the remote request can see the detail error page, you can switch
it on in your web.config. I can't remember which property to change. but you
look under the <debug> section or look for more information on debugging web
service from msdn library.
--
Can You?You Can.
"Tim Reynolds" wrote:
Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim

Nov 23 '05 #6
Thanks - but I tried <customErrors mode="RemoteOnl y" /> in the web.config on
the remote server. I tested the web service 2 ways 1) logged in to the
remote server via remote desktop & 2) from my pc - in both cases - same
result as previous - the Page Cannot Be displayed and the HTTP 500 - Internal
server error. It doesn't seem to matter if I am testing this web service
from the server directly or from my PC - either way the same results.

However, you pointed me in the right direction. I then tried "Off' instead
of remote only and achieved the desired result - finally my exception
displayed. Thanks for the tip.

Tim

"Deepak" wrote:
Hello
Please make the following change
<customErrors mode="RemoteOnl y" />
in the web.config file so that you can see the exact error message on the
browser on your server

"BillyLiu00 7" wrote:
By default. The detail error message will only be shown when you running on
local server. In your case, if you try to access your deployment server from
another machine, you can only see a 500 Error, unless you test on the
deployment server.

If you want the remote request can see the detail error page, you can switch
it on in your web.config. I can't remember which property to change. but you
look under the <debug> section or look for more information on debugging web
service from msdn library.
--
Can You?You Can.
"Tim Reynolds" wrote:
Team,
Hoping you can help. I have a web service I develop. In the code behind,
we throw an exception in some cases. When I run the webservice on my PC, the
exception is displayed in my browser.

However, when I run a test on this web service on a server it has been
deployed to no such expcetion returns to the screen - just the generic Page
Not Found error with HTTP 500 - Internal Server Error.

I have ran in debug & release mode on my pc. In both cases, I get the
exception message returned to browser. So it isn't the mode. Now I'm
guessing it is either IIS or IE setting. Who can help?

Much thanks,
Tim

Nov 23 '05 #7

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

Similar topics

3
7199
by: BLH | last post by:
Hi, I am using a 3rd party product that returns XML when calling its exe through a URL. For instance, the following URL calls this exe in Internet Explorer and returns valid, well formed XML and displays it in the browser: http://server/app/livelink.exe? func=search&where1=report&outputformat=xml
2
8200
by: obeOnline | last post by:
I'm getting the following error... System.Net.HttpWebRequest.CheckFinalStatus() +676 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +147 Web.WebDav.Page_Load(Object sender, EventArgs e)
0
295
by: Tim Reynolds | last post by:
Team, Hoping you can help. I have a web service I develop. In the code behind, we throw an exception in some cases. When I run the webservice on my PC, the exception is displayed in my browser. However, when I run a test on this web service on a server it has been deployed to no such expcetion returns to the screen - just the generic Page Not Found error with HTTP 500 - Internal Server Error. I have ran in debug & release mode on my...
20
4467
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am not seeing my exception details. The web.config file being used has the setting <customErrors mode="Off"/>. This should allow me to see the detailed exception info. On a different computer - same code - same web config - the exception details...
2
2794
by: Jim S | last post by:
I have a .net framework 2.0 client (Pocket PC) and a .net 2.0 webservice that communicate on the same LAN. The Pocket PC has no problem consuming strings returned from the web service methoeds but I’m unable to receive and a custom object. The error occurs when the PocketPC app casts a returned object (WebServiceServer.objectA) from the webservice to pocketPC.ObjectA (results in InvalidCastExeption). ObjectA is a simple class and is...
9
12011
by: jsoques | last post by:
Hello, I created a Web Service using .Net 2.0 that has a function that returns a DataTable. I can test the function from the web page when I access the .asmx from a browser on localhost and it works. I can also test the function using VB6 and the xmlhttp activex object. The problem I have now is when using VS 2005 or VB.Net 2005 Express and creating a web references is that the proxy created doesn't map the function as returning a DataTable...
4
2973
by: =?Utf-8?B?R3JlZw==?= | last post by:
I am a newbie to WCF so please forgive if this is an obvious question. I have the following. (Service contract) IEmployee public interface IEmployee { List<EmployeeGetEmployeeByID(string employeeID);
3
1348
by: John Skandar | last post by:
I've found a free WebService on the net for a currency converter and have created a class to use it with the WSDL tool. I call the WebService method asynchronously: converter.ConversionRateAsync((Currency)fromCurrencyComboBox.SelectedIndex, (Currency)toCurrencyComboBox.SelectedIndex); Where do I have to put the catch instruction? If I try to run the instruction above when I am not connected to the
1
1728
Frinavale
by: Frinavale | last post by:
I'm having a problem that I cannot seem to debug. FireFox's FireBug extension is indicating that there is an error being thrown, but I have no idea which window caused the error to be thrown. I have 3 browser windows open: (parent) the main window that is displaying a page where the user can provide details in order to create a new thing, (first child) a child window of the main window that is displaying page that describes details...
0
8466
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8384
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8813
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8591
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
8659
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...
1
6212
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
4208
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...
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1791
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.