Credential Provider - NetAIMGetAppInfo returns no Hash
104
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 12:58 PM
Symptom
Using NetAIMGetAppInfo to calculate hash for an .exe, returns no error, but the following message instead:
Total number of files that were hashed - 0
Environment
10.10;11.4;12.0;12.1;12.4;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Credential Provider
Cause
The NetAIMGetAppInfo utility was developed using .NET Framework 3.5 and it works for applications that were developed using .NET <= 4.0
When trying to calculate hash for executables/DLLs that were created using .NET Framework 4.5 for example, you will encounter the issue.
Resolution
- You can find instructions on how to find out which versions of .NET you have installed here: https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
- You can force any .NET app to run with specific .NET Framework version. This is done by creating a config.exe file and placing it on the same folder of the NetAIMGetAppInfo utility.
- An example file would contain:
<?xml version="1.0"?> <configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Note: There's no need to add any different parameter to the NetAIMGetAppInfo command, simply run it with standard parameters and make sure that the config file is located in the same folder of the NetAIMGetAppInfo tool.
Additional Information
Details
SYMPTOM:
Using NetAIMGetAppInfo to calculate hash for an .exe, returns no error, but the following message instead:
Total number of files that were hashed - 0
PROBLEM:
The NetAIMGetAppInfo utility was developed using .net framework 3.5 and it works for applications that were developed using .net<=4.0
When trying to calculate hash for executables/dlls that were created using .net framework 4.5 for example, you will encounter the issue.
SOLUTION:
1. You can find instructions on how to find out which versions of .net you have installed here:
https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
2. You can force any .net app to run with specific .net framework version
this is done by creating a config.exe file and placing it on the same folder of the NetAIMGetAppInfo utility.
3. An example file would contain:
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
4.There's no need to add any different parameter to the NetAIMGetAppInfo command, simply run it with standard parameters and make sure that the config file is located in the same folder of the NetAIMGetAppInfo tool.