Symptom
- Upgrading to IQ Network Client (IQNC) 16.1 SP02 from IQNC 16.0 GA.
- An application received an exception after iAnywhere.Data.SQLAnywhere.v4.0 dll was replaced with Sap.Data.SQLAnywhere.v4.5 and the artifacts were recompiled:
ERROR - System.ApplicationException: I tried 101 times. Now allowing exception to be counted. --->
System.ApplicationException: A SQL exception occurred.
SQL:
select message_id from applogging.message_codes
where message_code_ns = ? and message_code = ?.
Parameters:
AIM.Sleep.Imasis.ApplicationService.Case.CaseAppService.
StopWatchLogging.
ICommandCreation type: DbStorageLite.db.SqlAnywhereDb+CommandCreation.
---> System.MissingMethodException: Method not found: 'IntPtr System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(!!0)'.
at Sap.Data.SQLAnywhere.SACommand._ExecuteReader(CommandBehavior commandBehavior, Boolean isExecuteScalar, Boolean isBeginExecuteReader)
at Sap.Data.SQLAnywhere.SACommand.ExecuteScalar()
at DbStorageLite.db.DbCore`1.ExecuteScalar(SQL sql, Object[] parameters)
--- End of inner exception stack trace ---
at DbStorageLite.db.DbCore`1.ExecuteScalar(SQL sql, Object[] parameters)
at DbStorageLite.db.DbBase`1.ExecuteScalarNullableLong(SQL sql, Object[] parameters)
at LogLib.MessageCodeCache.GetMessageCodeIdSQL(MessageCode messageCode)
at LogLib.MessageCodeCache.GetMessageCodeId(MessageCode messageCode)
at LogLib.MessageCodeCache.GetMessageCodeId(IAnalyticsMessage message)
at LogLib.SqlWriter.Insert(IAnalyticsMessage message, IQWriter iqWriter)
at ZLogService.QReader.HandleMessage(String msg)
--- End of inner exception stack trace ---
- The issue exists on one Windows 2008 box only. There is another Windows installation that is working fine with IQNC 16.1.
Read more...
Environment
-
SAP IQ 16.1 SP02
- ADO.Net
- Microsoft Windows 2008
Product
Keywords
.NET, Framework, Marshal, GetFunctionPointerForDelegate, delegate, unmanaged , KBA , BC-SYB-IQ , Sybase IQ , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.