Hi,
I have developed an asp.net application that uses forms authentication.
I have a local install and a remotely hosted install of the application.
Intermittently the remote application falls over with an error (see
below for details).
This seems to happen on different pages after an asp forms button is
clicked, and brings down the whole application when it does happen. When
it happens you cannot browse to any page within the application (even
the front login page).
As a temporary fix, the hosting company restarts the application pool
and/or web service.
This seems to be happening approximately once or twice a day.
Here is a screen dump of the error.....
Any help as to the cause, would be greatly appreciated!
Server Error in '/vs24100_secure/coc_admin' Application.
------------------------------------------------------------------------
--------
Length cannot be less than zero. Parameter name: length
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Length cannot be
less than zero. Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length]
System.String.Substring(Int32 startIndex, Int32 length) +172
System.Web.UI.Util.GetScriptLocation(HttpContext context) +200
System.Web.UI.WebControls.BaseValidator.RegisterVa lidatorCommonScript()
+69
System.Web.UI.WebControls.BaseValidator.OnPreRende r(EventArgs e) +44
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1489
------------------------------------------------------------------------
--------
Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET Version:
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!