Hi,
We are working on a .net windows service program. In one code path, we will create an oracle oledb connection to an oracle database using ado.net provider over oledb.
We use oracle oledb provider (11g, 64bit) but we found when the path was configured incorrectly, a message box of "OraOLEDBpus11.dll is missing" would pop up. Since it's a windows service, the dialog box can't be seen and thus blocked the whole process.
We would like to know if it is possible to suppress this message box. And how can we suppress it?
Dialog box looks like:
---------------------------
Oracle Provider for OLE DB
---------------------------
OraOLEDBpus11.dll: The specified module could not be found.
---------------------------
OK
---------------------------
Some of the call stack are listed here:
00:U 000000001ca6a258 000000007736933a user32!ZwUserWaitMessage+0xa
01:U 000000001ca6a260 0000000077374bc4 user32!DialogBox2+0x274
02:U 000000001ca6a2f0 0000000077374edd user32!InternalDialogBox+0x135
03:U 000000001ca6a350 00000000773c2920 user32!SoftModalMessageBox+0x9b4
04:U 000000001ca6a480 00000000773c1c15 user32!MessageBoxWorker+0x31d
05:U 000000001ca6a640 00000000773c146b user32!MessageBoxTimeoutW+0xb3
06:U 000000001ca6a710 00000000773c1616 user32!MessageBoxTimeoutA+0x18a
07:U 000000001ca6a780 00000000773c1306 user32!MessageBoxA+0x4e
08:U 000000001ca6a7c0 0000000180032099 OraOLEDB11+0x32099
09:U 000000001ca6a9a0 000000018005a45a OraOLEDB11!DllCanUnloadNow+0x60a
0a:U 000000001ca6a9e0 000000018006a0ad OraOLEDB11!DllUnregisterServer+0x9ded
0b:U 000000001ca6aa20 00000000775ab108 ntdll!LdrpRunInitializeRoutines+0x1fe
0c:U 000000001ca6abf0 000000007759787a ntdll!LdrpLoadDll+0x231
0d:U 000000001ca6ae00 0000000077597b5e ntdll!LdrLoadDll+0x9a
0e:U 000000001ca6ae70 000007fefd6e9059 KERNELBASE!LoadLibraryExW+0x22e
0f:U 000000001ca6aee0 000007feff164e42 ole32!LoadLibraryWithLogging+0x32
10:U 000000001ca6af30 000007feff164db7 ole32!CClassCache::CDllPathEntry::LoadDll+0x5b
11:U 000000001ca6af70 000007feff164bbc ole32!CClassCache::CDllPathEntry::Create_rl+0x4c
12:U 000000001ca6afd0 000007feff161ca1 ole32!CClassCache::CClassEntry::CreateDllClassEntry_rl+0xe1
13:U 000000001ca6b290 000007feff161b73 ole32!CClassCache::GetClassObjectActivator+0x5ab
14:U 000000001ca6b3e0 000007feff162425 ole32!CClassCache::GetClassObject+0x45
15:U 000000001ca6b450 000007feff18a53a ole32!CServerContextActivator::GetClassObject+0x1fc
16:U 000000001ca6b540 000007feff18a3a2 ole32!ActivationPropertiesIn::DelegateGetClassObject+0x62
17:U 000000001ca6b5a0 000007feff18a5fc ole32!CApartmentActivator::GetClassObject+0x4c
18:U 000000001ca6b5e0 000007feff18a645 ole32!CProcessActivator::GCOCallback+0x31
19:U 000000001ca6b610 000007feff186e83 ole32!CProcessActivator::AttemptActivation+0x33
1a:U 000000001ca6b650 000007feff186e17 ole32!CProcessActivator::ActivateByContext+0x7f
1b:U 000000001ca6b6e0 000007feff18a6d0 ole32!CProcessActivator::GetClassObject+0x70
1c:U 000000001ca6b720 000007feff18a3a2 ole32!ActivationPropertiesIn::DelegateGetClassObject+0x62
1d:U 000000001ca6b780 000007feff18a30c ole32!CClientContextActivator::GetClassObject+0xcc
1e:U 000000001ca6ba10 000007feff18a3a2 ole32!ActivationPropertiesIn::DelegateGetClassObject+0x62
1f:U 000000001ca6ba70 000007feff18a176 ole32!ICoGetClassObject+0x3d6
20:U 000000001ca6c590 000007feff183057 ole32!CComActivator::DoGetClassObject+0x1c7
21:U 000000001ca6c660 000007feff182e67 ole32!CoGetClassObject+0x4f
22:U 000000001ca6c6c0 000007fedd30317f oledb32!CCMProviderInfo::Initialize+0x5f
23:U 000000001ca6c710 000007fedd302eb5 oledb32!CCMProviderInfoManager::CreateProviderInfo+0x2a7
24:U 000000001ca6c8a0 000007fedd302cf8 oledb32!CCMProviderInfoManager::GetProviderInfoFromCLSID+0x9a
25:U 000000001ca6c930 000007fedd302c54 oledb32!CCMProviderInfoManager::GetProviderInfoFromInitString+0x2b4
26:U 000000001ca6c9b0 000007fedd302a68 oledb32!InitialGetDataSource+0x160
27:U 000000001ca6ca60 000007fedd302993 oledb32!GetDataSource+0x797
28:U 000000001ca6cc80 000007fedd2f1eca oledb32!CMSDAInitialize::GetDataSource+0x1d1
29:U 000000001ca6cce0 000007fedd35cb43 oledb32!CDSLObject::GetDataSource+0x63
OraOLEDB11.dll version:
Product version 11.2.0.1.0
File version 11.2.0.1
Thanks,
Xuan