473,586 Members | 2,854 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application errors and broken requests

Hi!
I've written some code in my globala.asax application_err or event to send me
some email whenever an error occur. I send the errormessage, stacktrace,
etc. and I also list all the form elements and their values
(Request.Form.A llKeys - looping through all keys).
Now, sometimes not all the Form elements that is in the page get listed.
What can cause this? Can it be that the request has been broken (not
complete) because of some error on the network? If this is so, how can I
detect an incomplete request?

Here is one example. This page have a lot of textboxes, but only three form
elements get listed
----------------------------------------------------
Type : System.FormatEx ception
Message : String was not recognized as a valid DateTime.
Source : mscorlib
StackTrace: at System.DateTime Parse.Parse(Str ing s, DateTimeFormatI nfo dtfi,
DateTimeStyles styles)
at System.DateTime .Parse(String s, IFormatProvider provider,
DateTimeStyles styles)
at System.DateTime .Parse(String s, IFormatProvider provider)
at System.DateTime .Parse(String s)
at System.Convert. ToDateTime(Stri ng value)
at timelister.main .btn_forrige_da g_Click(Object sender, EventArgs e) in
c:\inetpub\wwwr oot\timeregistr ering_v2_1\main .aspx.cs:line 316
at System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e)
at
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument)
at System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)
at System.Web.UI.P age.ProcessRequ estMain()
*************** ******
* Form Values *
*************** ******

txt_error :
txt_periodeuke3 : 200529
btn_forrige_dag : <<
----------------------------------------------------
The error itself got thrown because it tried to convert the value in a
textbox called txt_day. But as you can see the texbox txt_day is not in the
Request.Form. If this happend because of an "incomplete " request, how can I
detect it? The user doesn't experience any error at all.

Any help would be appreciated.

Marius
Nov 19 '05 #1
0 887

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

Similar topics

3
5336
by: ^CeFoS^ | last post by:
Hi to everybody, due to I want to use the serial port of a server machine through an applet allocated in html document. > Then one application will run in the server machine and using > the serial port. The other application that will be called in the html > document that it'll allocate the frame with the user interfaz and > it'll manage the...
11
2756
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each other. On my application startup, I configure the objects usting the RemotingConfiguration class to load the config file. Then I "ping" each of the...
4
5379
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the custom-errors-tag ="off" but nothing happens.... what is my failure????
4
1911
by: Jon Spivey | last post by:
Hi, I've set up a custom error like this <customErrors mode="On" defaultRedirect="ErrorPage.aspx"> <error statusCode="404" redirect="error404.aspx" /> </customErrors> So requests for NoSuchPage.aspx are routed to error404.aspx. Good. But it seems that requests for any other file extension (*.htm) or requests without a filename (eg...
7
2265
by: Pavils Jurjans | last post by:
Hello, I wanted to get some light in the subject. As I develop ASP.NET applications, it's necessary to understand how exactly the server- communication happens. It seems like initially application is "sleeping", and it is not loaded in the memory. Then, after very first request to the app, it is compiled (aspx files), loaded into memory, and...
0
1276
by: Phinneas | last post by:
Howdy, I have multiple apps running on a pair of dual-processor Win2k IIS servers, neither of which are domain controllers. My users are experiencing fairly frequent (10-20 / day) "Server Application Unavailable" errors. I'm using a custom "Server Application Unavailable" page to send me an email whenever this occurs. I also have a...
5
1223
by: WT | last post by:
I don't understand, since I migrated my web site to VS2005+ APS.NET 2 (C#), all the request reach my Application_BeginRequest method in Global.ascx.cs and generate unecessary computing. I think that I have missed some new parameter in web.config or somewehre else. Anybody having idea welcome.
4
2166
by: =?Utf-8?B?bWFzbWl0aA==?= | last post by:
Can you restart an ASP.NET application in the Application_Start event when an error occurs so the next request for the application will fire the Application_Start event again? This would allow the application to recover without intervention if the problem is a database server is temporarily offline or other external source of data being...
25
2358
by: JJ | last post by:
I only want to catch 404 errors at the application level (the rest are will be handled by the customerrors section of the web.config). How do I check for the error code in the Application_Error of Global.asax ? Thanks, JJ
0
7911
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...
0
7839
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...
0
8200
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7954
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...
0
8215
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...
0
6610
agi2029
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...
0
5390
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...
1
2345
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
0
1179
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...

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.