SAP Knowledge Base Article - Preview

1931337 - ADO.NET: TypeInitializationException occurs when more than one IIS application pool is used on same IIS server - SDK for SAP ASE

Symptom

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

or

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)


Read more...

Environment

  • SAP Sybase Software Developer Kit (SDK) 15.7 ESD#4 
  • SAP Adaptive Server Enterprise (ASE) 15.7
  • ADO.Net
  • IIS (Internet Information Service)

Product

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

Keywords

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.