473,385 Members | 1,727 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,385 software developers and data experts.

The page cannot be displayed instead of exception

Team,
When my web service throws an exception and I am debugging on my PC - I get
the exception back in my browser fine. My web.config shows <customErrors
mode="Off"/> and this is working well.

However, when I test this web service on the deployment server, I only get
'The page cannot be displayed' instead of the exception. That is when I call
the web service on the deployment server locally or remotely. The web.config
on the deployment server also has <customErrors mode="Off"/>.

Please advise as to why I am not seeing the exception info on the deployment
server even though <customErrors mode="Off"/>. Not only can I not get it
remotelyi, I can't get it locally.

THank you,
Tim
Nov 29 '05 #1
2 8116
Hi Tim,

Welcome to webservice newsgroup.
From your description, one of your ASP.NET webservice can work well (can
view error info when turn off customErrors...), but always return "page can
not be displayed..... error when move to a deployment server, yes?

As for the <customErrors mode="Off" .../>, it only ensure that when there
is unhandled exception occurs in ASP.NET runtime, it'll be displayed on the
web page with detaield error info... However, since the ASP.NET web
application will recieve request from client browser , then IIS server and
finally the asp.net pipeline ... , there could have some exception or
error occur before the ASP.NET runtime handle the request, in such cases,
the error info can not be captured by customErros page.....

So for general troubleshooting, I would suggest first try putting a normal
HTML page in your asp.net app's virtual dir and visist it to see whether we
can view it correctly(see IIS works well or not...). Also, the IIS log
under %windows% \system32\logfiles is another thing we can check , please
also have a look to see whether there is error entry mapped to your request
to the webservice...

If there're anything unclear or any other findings, please feel free to
post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
Thread-Topic: The page cannot be displayed instead of exception
thread-index: AcX1Be33Va/v5g4zTAKlrUb66ZKjMg==
X-WBNR-Posting-Host: 192.76.82.90
From: =?Utf-8?B?VGltIFJleW5vbGRz?= <ti**********@online.nospam>
Subject: The page cannot be displayed instead of exception
Date: Tue, 29 Nov 2005 08:57:06 -0800
Lines: 16
Message-ID: <F3**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:1286 4
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Team,
When my web service throws an exception and I am debugging on my PC - I get
the exception back in my browser fine. My web.config shows <customErrors
mode="Off"/> and this is working well.

However, when I test this web service on the deployment server, I only get
'The page cannot be displayed' instead of the exception. That is when I
call
the web service on the deployment server locally or remotely. The
web.config
on the deployment server also has <customErrors mode="Off"/>.

Please advise as to why I am not seeing the exception info on the
deployment
server even though <customErrors mode="Off"/>. Not only can I not get it
remotelyi, I can't get it locally.

THank you,
Tim

Nov 30 '05 #2
Hey Tim,

How are you doing on this issue, does the suggestion in my last reply helps
a little? If there're anything else we can help, please feel free to post
here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
X-Tomcat-ID: 58332852
References: <F3**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_0001_340FBD5E"
Content-Transfer-Encoding: 7bit
From: st*****@online.microsoft.com (Steven Cheng[MSFT])
Organization: Microsoft
Date: Wed, 30 Nov 2005 02:47:16 GMT
Subject: RE: The page cannot be displayed instead of exception
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Message-ID: <f4**************@TK2MSFTNGXA02.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
Lines: 178
Path: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:1287 1
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Hi Tim,

Welcome to webservice newsgroup.
From your description, one of your ASP.NET webservice can work well (can
view error info when turn off customErrors...), but always return "page can
not be displayed..... error when move to a deployment server, yes?

As for the <customErrors mode="Off" .../>, it only ensure that when there
is unhandled exception occurs in ASP.NET runtime, it'll be displayed on the
web page with detaield error info... However, since the ASP.NET web
application will recieve request from client browser , then IIS server and
finally the asp.net pipeline ... , there could have some exception or
error occur before the ASP.NET runtime handle the request, in such cases,
the error info can not be captured by customErros page.....

So for general troubleshooting, I would suggest first try putting a normal
HTML page in your asp.net app's virtual dir and visist it to see whether we
can view it correctly(see IIS works well or not...). Also, the IIS log
under %windows% \system32\logfiles is another thing we can check , please
also have a look to see whether there is error entry mapped to your request
to the webservice...

If there're anything unclear or any other findings, please feel free to
post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
Thread-Topic: The page cannot be displayed instead of exception
thread-index: AcX1Be33Va/v5g4zTAKlrUb66ZKjMg==
X-WBNR-Posting-Host: 192.76.82.90
From: =?Utf-8?B?VGltIFJleW5vbGRz?= <ti**********@online.nospam>
Subject: The page cannot be displayed instead of exception
Date: Tue, 29 Nov 2005 08:57:06 -0800
Lines: 16
Message-ID: <F3**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSF TNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:1286 4
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Team,
When my web service throws an exception and I am debugging on my PC - I get
the exception back in my browser fine. My web.config shows <customErrors
mode="Off"/> and this is working well.

However, when I test this web service on the deployment server, I only get
'The page cannot be displayed' instead of the exception. That is when I
call
the web service on the deployment server locally or remotely. The
web.config
on the deployment server also has <customErrors mode="Off"/>.

Please advise as to why I am not seeing the exception info on the
deployment
server even though <customErrors mode="Off"/>. Not only can I not get it
remotelyi, I can't get it locally.

THank you,
Tim

Dec 1 '05 #3

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

Similar topics

0
by: Gordon | last post by:
I have IIS 5.0 running on a Win2000 server. I have scripts that I want to run on the web page. It was suggested to me to create an .HTA page instead of .asp or .html to make them run. The...
5
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
1
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
5
by: pbo.spam | last post by:
I have a little problem. I designed a webpage (VB.Net) with code behind "Page_Load". If the process works fine, the page is shown. If the process raises an exception, I catch it and modify a...
0
by: Luqman | last post by:
I have copied the following code from Internet, and copied it to a file named : test.aspx, and copied that file to c:\Inetpub\wwwroot Directory. When I type on my Internet explorer:...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
1
by: VMI | last post by:
I wrote a web service whose only purpose is to update a field in a table (sql server). And everything works except for the browser window that opens up with "The page cannot be displayed" error...
4
by: Peter | last post by:
I have the following code which works fine in IE6 and IE7 and FireFox, but when I run IE6 on Citrix I get "The page cannot be displayed" in the iframe. We don't have IE7 on Citrix so I can't try...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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
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,...

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.