Unexplainable exception

Using (or providing) Microsoft.NET Classes

Unexplainable exception

Postby RobertB on Thu Nov 11, 2010 7:04 am

Hello,

sometimes we get an exception in our web-application that we can not explain.
We can not reproduce this exception. It is thrown sporadic.
We are using Dyalog 12.0 and .Net 2.0.

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Unable to cast object of type 'System.Object[]' to type 'System.Web.UI.HtmlControls.HtmlInputText'.
at SyncCall(sDyalogInterfaces* sdyalog, Int32 idx, Int32 idx_class, Int32 thunks, String Name, String PropName, Object args, Type RsltType)
at ToDyalog.Call(String Name, String PropName, Int32 target, Object args, Type RsltType)
at ITWKPos_FirewallAntrag.Page_Load(Object obj, EventArgs ev)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- Ende der internen Ausnahmestapelüberwachung ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.aspx_itwkpos_firewall_aspx.$BASEProcessRequest(HttpContext )


Regards
RobertB
 
Posts: 15
Joined: Fri Aug 27, 2010 7:16 am

Re: Unexplainable exception

Postby JohnD|Dyalog on Thu Nov 11, 2010 10:45 am

It looks like there is an error in the APL code (either in, or called from Page_Load) which is attempting to do something like:

ctrl.property ← Value

where the Value is expected to be an instance of HtmlInputText, but is instead a nested array of some sort.

I suggest that you try one of the following:

1) Enable debugging of the application (see viewtopic.php?f=22&t=38). Then, when the error occurs in the APL code you will get a visible session, with which you can debug the code.
2) Attach Visual Studio to the ASP.NET process and, when the exception occurs, you may see more information about the call stack (which in the text above is missing the sections called from APL). This will hopefully lead you to the appropriate line of APL.

Best Regards,
John Daintree
User avatar
JohnD|Dyalog
 
Posts: 74
Joined: Wed Oct 01, 2008 9:35 am

Re: Unexplainable exception

Postby RobertB on Thu Nov 11, 2010 3:12 pm

I don´t think that this exception happens in our code.
The diagnostic message ([]DM) gives the following message:

EXCEPTION
ProcessRequest[9] ⎕BASE.ProcessRequest(context)

#.AppDomain__LM_W3SVC_1517098897_Root_1_129338540216322220.Assembly_App_Web_itwkpos_firewall_aspx_c95a9bd_6tywyqvp.ASP.aspx_itwkpos_firewall_aspx.ProcessRequest[9]
RobertB
 
Posts: 15
Joined: Fri Aug 27, 2010 7:16 am


Return to Microsoft.NET

Who is online

Users browsing this forum: No registered users and 1 guest