Dear All,
I have a web Application "http://localhost/Web/WebForm1.aspx" that
calls a WebService from
"http://localhost/webserviceapp/service1.asmx". ..I have set the
executionTimeou t to 10 secs in Web.Config where my WebService is
installed.
<httpRuntime executionTimeou t="10" appRequestQueue Limit="2" />
When I call a method "TestPlan" which takes more than 10 secs my web
Page gets the following error:
Error: Client found response content type of 'text/html;
charset=utf-8', but expected 'text/xml'. The request failed with the
error message: --
Server Error in '/WebServiceApp' Application.
Exception Details: System.Web.Http Exception: Request timed out.
I tried to trap the error on Application_Err or function of Global.asax
of both my Web page and the WebService...
Sub Application_Err or(ByVal sender As Object, _
ByVal e As EventArgs)
' Get the actual error that brought us here
Dim ex As Exception = _
Server.GetLastE rror.InnerExcep tion
' Display basic error information
Response.Write( "An error occurred in the application:<br >")
Response.Write( ex.Message & "<br>")
Response.Write( "Stack trace:<br>")
Dim s As StringBuilder = New StringBuilder(e x.StackTrace)
Response.Write( s.Replace(" at ", " at<br> "))
Response.End()
' Clear the error
Server.ClearErr or()
End Sub
But it did not work...I tried to trap the event on the Page's onError
method too it did not work...could someone please help...
TALIA
Many Regards
Jack 5 2415
Your post went unanswered. Have you resolved this issue?
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here... http://tinyurl.com/3he3b
"Jack Wright" <su***@volcanom ail.com> wrote in message
news:8f******** *************** ***@posting.goo gle.com... Dear All, I have a web Application "http://localhost/Web/WebForm1.aspx" that calls a WebService from "http://localhost/webserviceapp/service1.asmx". ..I have set the executionTimeou t to 10 secs in Web.Config where my WebService is installed. <httpRuntime executionTimeou t="10" appRequestQueue Limit="2" />
When I call a method "TestPlan" which takes more than 10 secs my web Page gets the following error: Error: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- Server Error in '/WebServiceApp' Application. Exception Details: System.Web.Http Exception: Request timed out. I tried to trap the error on Application_Err or function of Global.asax of both my Web page and the WebService... Sub Application_Err or(ByVal sender As Object, _ ByVal e As EventArgs) ' Get the actual error that brought us here Dim ex As Exception = _ Server.GetLastE rror.InnerExcep tion ' Display basic error information Response.Write( "An error occurred in the application:<br >") Response.Write( ex.Message & "<br>") Response.Write( "Stack trace:<br>") Dim s As StringBuilder = New StringBuilder(e x.StackTrace) Response.Write( s.Replace(" at ", " at<br> ")) Response.End() ' Clear the error Server.ClearErr or() End Sub But it did not work...I tried to trap the event on the Page's onError method too it did not work...could someone please help...
TALIA
Many Regards Jack
Not yet...wot do I do?
Please help...
TALIA
Many Regards
Jack
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message news:<uF******* *******@tk2msft ngp13.phx.gbl>. .. Your post went unanswered. Have you resolved this issue?
-- Regards, Alvin Bruney [ASP.NET MVP] Got tidbits? Get it here... http://tinyurl.com/3he3b "Jack Wright" <su***@volcanom ail.com> wrote in message news:8f******** *************** ***@posting.goo gle.com... Dear All, I have a web Application "http://localhost/Web/WebForm1.aspx" that calls a WebService from "http://localhost/webserviceapp/service1.asmx". ..I have set the executionTimeou t to 10 secs in Web.Config where my WebService is installed. <httpRuntime executionTimeou t="10" appRequestQueue Limit="2" />
When I call a method "TestPlan" which takes more than 10 secs my web Page gets the following error: Error: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- Server Error in '/WebServiceApp' Application. Exception Details: System.Web.Http Exception: Request timed out. I tried to trap the error on Application_Err or function of Global.asax of both my Web page and the WebService... Sub Application_Err or(ByVal sender As Object, _ ByVal e As EventArgs) ' Get the actual error that brought us here Dim ex As Exception = _ Server.GetLastE rror.InnerExcep tion ' Display basic error information Response.Write( "An error occurred in the application:<br >") Response.Write( ex.Message & "<br>") Response.Write( "Stack trace:<br>") Dim s As StringBuilder = New StringBuilder(e x.StackTrace) Response.Write( s.Replace(" at ", " at<br> ")) Response.End() ' Clear the error Server.ClearErr or() End Sub But it did not work...I tried to trap the event on the Page's onError method too it did not work...could someone please help...
TALIA
Many Regards Jack
I don't believe a time out is an exception which is why you aren't able to
catch it.
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here... http://tinyurl.com/3he3b
"Jack Wright" <su***@volcanom ail.com> wrote in message
news:8f******** *************** ***@posting.goo gle.com... Not yet...wot do I do?
Please help...
TALIA
Many Regards Jack
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:<uF******* *******@tk2msft ngp13.phx.gbl>. .. Your post went unanswered. Have you resolved this issue?
-- Regards, Alvin Bruney [ASP.NET MVP] Got tidbits? Get it here... http://tinyurl.com/3he3b "Jack Wright" <su***@volcanom ail.com> wrote in message news:8f******** *************** ***@posting.goo gle.com... Dear All, I have a web Application "http://localhost/Web/WebForm1.aspx" that calls a WebService from "http://localhost/webserviceapp/service1.asmx". ..I have set the executionTimeou t to 10 secs in Web.Config where my WebService is installed. <httpRuntime executionTimeou t="10" appRequestQueue Limit="2" />
When I call a method "TestPlan" which takes more than 10 secs my web Page gets the following error: Error: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- Server Error in '/WebServiceApp' Application. Exception Details: System.Web.Http Exception: Request timed out. I tried to trap the error on Application_Err or function of Global.asax of both my Web page and the WebService... Sub Application_Err or(ByVal sender As Object, _ ByVal e As EventArgs) ' Get the actual error that brought us here Dim ex As Exception = _ Server.GetLastE rror.InnerExcep tion ' Display basic error information Response.Write( "An error occurred in the application:<br >") Response.Write( ex.Message & "<br>") Response.Write( "Stack trace:<br>") Dim s As StringBuilder = New StringBuilder(e x.StackTrace) Response.Write( s.Replace(" at ", " at<br> ")) Response.End() ' Clear the error Server.ClearErr or() End Sub But it did not work...I tried to trap the event on the Page's onError method too it did not work...could someone please help...
TALIA
Many Regards Jack
Can I trap this?
Error: Client found response content type of 'text/html;
charset=utf-8', but expected 'text/xml'
If I can then I show a neat message to the user...
Thanks & Regards
Jack
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message news:<uP******* ******@tk2msftn gp13.phx.gbl>.. . I don't believe a time out is an exception which is why you aren't able to catch it.
You cannot trap errors by string description. You may have your webserver
sniff out the http error code and take appropriate action as a work around.
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here... http://tinyurl.com/3he3b
"Jack Wright" <su***@volcanom ail.com> wrote in message
news:8f******** *************** ***@posting.goo gle.com... Can I trap this? Error: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml' If I can then I show a neat message to the user...
Thanks & Regards Jack
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:<uP******* ******@tk2msftn gp13.phx.gbl>.. . I don't believe a time out is an exception which is why you aren't able
to catch it. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: s_erez |
last post by:
Hi,
This is a realy tricky one.
I have an ASP.NET application where some pages are reading data from a
DB and presenting reports.
In order for the user to wait while the page is reading data from the
DB I am using a DIV with a please wait message which is removed once
the page is loaded.
In addition I am using a global error handling using the
Application_Error void in the Global.asax file.
when the application is loading a page which...
|
by: coolsti |
last post by:
I am aware of the setInterval and setTimeout functions for Javascript, but
I can't seem to find an example that lets me do what I need to.
I have a script that needs to wait until a certain condition is met. In
this case, the condition is that an iframe has been reloaded completely. I
do this by examining a hidden document variable in the iframe, and when it
has changed from "" to "1" is the signal for me that the iframe is loaded.
(if...
|
by: tafs7 |
last post by:
My code below is supposed to email me when an error occurs on the
application, but it's not emailing anything. Am I missing something?
I know the smtp servers I've tried work. I even added a App_Start
handler to see if I could get emailed at all even from the first
request of the app, but to no avail. Could someone please help me
out? Thanks a lot!
--Thiago
Web developer
AgniTEK
|
by: Frank |
last post by:
Does anyone have any clues as to what might have caused this error?
Only the startup web page uses ASP compatibility mode. I've tested
this thru 100000s of cycles, and this recently appears in one of the
stress tests. This appeared after many cycles of successful execution
for the same page: as in about 4 hours. Could have something timed
out?
Trace:
System.Web.HttpException: Exception of type System.Web.HttpException
was thrown....
|
by: Baren |
last post by:
Hi!
I am using the following code to redirect and display custom error message.
But its not working properly. Its giving the same error instead of the cusotm
error
web.config :
<configuration>
<system.web>
<httpRuntime maxRequestLength="4000"/>
| |
by: Rippo |
last post by:
I have a problem with the application_error event being fired from my
asp.net application with windows 2003 server standard edition. The
event fires fine from my test machine (XP) and all works well. However
the event never appears to fire from windows 2003. I have tried just
about everything and can not find an answer. I cannot debug through the
windows 2003 server as I do not have VS installed on it plus it is a
live server
Can any...
|
by: R.A.M. |
last post by:
Hello.
I need your help in the following problem:
I have ASP.NET application with starting page Default.aspx.
On Default.aspx.cs page I have (.aspx contains no code):
public partial class DefaultPage : System.Web.UI.Page
{
class DemoLogin : Login
{
public DemoLogin(string ID) : base()
|
by: bmukulu |
last post by:
Hi,
I am trying to add some error handling in a Global.asax file. I am
declaring a session variable within the Application_Error procedure.
However, everytime i try to pass something into the sessionstate i get
a error message of 'Object reference not set to an instance of an
object.' Is there any workaround for this? And why am I getting this
error?
Thanks in advance
|
by: Nathan Sokalski |
last post by:
When I click after about 15 minutes on a page I wrote I recieve the
following error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Validation of viewstate MAC failed. If this application is hosted by a Web
Farm or cluster, ensure that <machineKeyconfiguration specifies the same
validationKey and validation algorithm. AutoGenerate cannot be used in a
cluster.
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |