× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



We have an ASP.Net (C#) application that occasionally (as in we're fine
for weeks, and then it will happen) will start to throw an
InvalidCastException (stack trace below). We've tried Googling the
MapSQLTypeToiDB2DbType and there are no hits. Anyone seen this error
happen? Any ideas on how to fix? It's on a simple select statement
selecting 3 columns from a table, a char, a decimal, and a char column,
and the code runs w/out a problem most of the time. It's as if the i is
returning different meta data for one of those columns at some point.
Once it starts we need to kill the asp.net process to get it fixed.



-Walden



[InvalidCastException: The data type returned is currently not supported
by the provider.]

IBM.Data.DB2.iSeries.iDB2DbTypeUtility.MapSQLTypeToiDB2DbType(DcSqlTypes
sqlType, Int32 colccsid, UInt32 length) +779
IBM.Data.DB2.iSeries.iDB2Command.DeriveParameters() +778
DataHelper.Data.ExecuteDataset(String commandText, CommandType
commandType, Object[] parameters) in
E:\dev\Condor\PaymentSite\Data\Data.cs:119
DataHelper.Data.ExecuteDataRowInternal(String commandText,
CommandType commandType, Boolean ThrowOnError, Object[] parameters) in
E:\dev\Condor\PaymentSite\Data\Data.cs:75
DataHelper.Data.ExecuteDataRow(String commandText, CommandType
commandType, Object[] parameters) in
E:\dev\Condor\PaymentSite\Data\Data.cs:60
BusinessObjects.PaymentRequest.GetPaymentRequest(Guid
paymentRequestGuid) in
E:\dev\Condor\PaymentSite\BusinessObjects\PaymentRequest.cs:44
CSRPayments.ProcessPayment.Page_Load(Object sender, EventArgs e) in
E:\dev\Condor\PaymentSite\CSRPayments\ProcessPayment.aspx.cs:23
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47

System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.