Unhandled Exceptions Running C# CODE USING 64 BIT Windows ASDK (Doc ID 1518469.1)

Last updated on JULY 07, 2015

Applies to:

COREid Access - Version 10.1.4.3.0 to 10.1.4.3.0
Information in this document applies to any platform.

Symptoms

We have installed 64 bit 10.1.4.3. Access Gate in windows. When trying to access this from C# application, it is throwing following error.

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembly 'obaccess_api_mgd.dll' or one of its dependencies. The application
has failed to start because its side-by-side configuration is incorrect.
Please see the application event log or use the command-line sxstrace.exe
tool for more detail. (Exception from HRESULT: 0x800736B1)
at AccessMgr_API_Test.Main(String[] args)
Press any key to continue . . .

 

Sxstrace shows

 

Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = AMD64
CultureFallBacks = en-US;en
ManifestPath = C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\obaccess_api_mgd.dll
AssemblyDirectory = C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\
Application Config File =
-----------------
INFO: Parsing Manifest File C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\obaccess_api_mgd.dll.
INFO: Manifest Definition Identity is (null).
INFO: Reference: Microsoft.VC80.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
INFO: Reference: Microsoft.VC80.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762"
INFO: Resolving reference Microsoft.VC80.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762".
INFO: Resolving reference for ProcessorArchitecture amd64.
INFO: Resolving reference for culture Neutral.
INFO: Applying Binding Policy.
INFO: No publisher policy found.
INFO: No binding policy redirect found.
INFO: Begin assembly probing.
INFO: Did not find the assembly in WinSxS.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\Microsoft.VC80.DebugCRT\8.0.50727.762__1fc8b3b9a1e18e3b\Microsoft.VC80.DebugCRT.DLL.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\Microsoft.VC80.DebugCRT.DLL.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\Microsoft.VC80.DebugCRT.MANIFEST.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\Microsoft.VC80.DebugCRT\Microsoft.VC80.DebugCRT.DLL.
INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\obaccess_api_mgd\6.5.0.0__99645062befa5197\Microsoft.VC80.DebugCRT\Microsoft.VC80.DebugCRT.MANIFEST.
INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.
ERROR: Cannot resolve reference Microsoft.VC80.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762".
ERROR: Activation Context generation failed.
End Activation Context Generation.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms