SAP Knowledge Base Article - Preview

1931337 - TypeInitializationException occurs when more than one IIS application pool is used on same IIS server


A second application instance is started on a Windows IIS server and receives one of these errors, while the first application instance is running:

Could not load C:\Windows\TEMP\Sybase.AdoNet4.AseClient.64bits.4.157.1100.0\sbgse2.dll
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: Sybase.Data.AseClient.AseException: Could not load C:\Windows\TEMP\Sybase.AdoNet4.AseClient.64bits.4.157.1100.0\sbgse2.dll


tab1: Stack: System.TypeInitializationException: The type initializer for 'Sybase.Data.AseClient1.AseConnection' threw an exception. ---> Sybase.Data.AseClient.AseException: Could not load C:\Windows\TEMP\Sybase.AdoNet4.AseClient.64bits.4.157.1100.0\sbgse2.dll
at Sybase.Data.AseClient1.AseConnection.SaveAndLoadLibrary(String dirName, String dllName, Int32 bits)
at Sybase.Data.AseClient1.AseConnection.LoadLibraries()
at Sybase.Data.AseClient1.AseConnection..cctor()
--- End of inner exception stack trace ---
at Sybase.Data.AseClient1.AseConnection..ctor(AseConnection realConnection)





  • ASE ADO.NET Data Provider 4.157.1100.0, 2.157 (15.7 ESD#4 and higher, introducing the integrated/comprehensive un-managed DLLs feature)
  • SAP Sybase ASE 15.7
  • Windows 7/ Windows 2008 R2 x64
  • Development platform: MSDEV (Visual Studio) 2010 or higher
  • .NET Framework 4.0
  • IIS (Internet Information Service) 7.0/7.5


SAP Adaptive Server Enterprise 12.5 ; SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0


Adaptive Server Enterprise,ADODOTNET,WCF   , KBA , BC-SYB-SDK , SDK , Bug Filed

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.