Getting the Error: Could not load agent module for Dynatrace OneAgent SDK for C/C++: the specified module was not found
when trying to run the sample1.exe (OneAgent SDK for C/C++) on windows.
OneAgent is running and I can't find out what the problem is.
Thanks for the help in advance.
Solved! Go to Solution.
2020-07-06 07:13:06.184 UTC  info [onesdk] Initializing Dynatrace OneAgent SDK for C/C++ ...
2020-07-06 07:13:06.200 UTC  info [onesdk] SDK stub version 188.8.131.52, build date 2019.10.23 12:58:09.
2020-07-06 07:13:06.209 UTC  fine [onesdk] Preparing arguments...
2020-07-06 07:13:06.213 UTC  config [onesdk] Options:
2020-07-06 07:13:06.218 UTC  config [onesdk] Agent active: true
2020-07-06 07:13:06.222 UTC  config [onesdk] Agent module: 'oneagentloader.dll'
2020-07-06 07:13:06.226 UTC  config [onesdk] SDK log level: finest
2020-07-06 07:13:06.230 UTC  config [onesdk] Additional options:
2020-07-06 07:13:06.235 UTC  config [onesdk] ONESDK_INTERNAL_CA627667445C40F0_INIT_FLAGS=0
2020-07-06 07:13:06.240 UTC  fine [onesdk] Loading agent module...
2020-07-06 07:13:06.280 UTC  info [onesdk] Could not load agent module for Dynatrace OneAgent SDK for C/C++: The specified module was not found
ONESDK initialized: no initialize: The specified module was not found
agent_set_warning_callback: Not initialized.
agent_set_verbose_callback: Not initialized.
I cannot see any suspicious in these log lines. Here are a couple of ideas and questions:
could please attach a screenshot of process explorer where we see the list of loaded DLLs - sorted by "Company Name" (so we see everything by Dynatrace) and displaying the DLL version information?
that was really helpful!
A potential problem could be this "Digital Guardian Agent" that is also present in the process. Multiple agent technologies within a process has caused similar issues in the past. I suggest disabling this other agent (if possible) and see if the problem persists. In any case, you might want to open a support case with us so we can collect logs and additional data about the possible conflict between those agent technologies.