- Posts: 14
System.DllNotFoundException: Unable to load DLL 'ssc.dll'
- Asif K
- Topic Author
Less
More
17 Jul 2025 00:57 #14159
by Asif K
System.DllNotFoundException: Unable to load DLL 'ssc.dll' was created by Asif K
The subject problem has wasted my five days and had no choice to contact here. I have tried every possible option and searched from internet but it fails.
QUESTION #1
1) I am using c# and Visual Studio
2) I have developed an app using NREAL SAM module wherein ssc.cs and dll are used.
3) cs and dll are generated from software NREL SAM (ver 2025.4.16).
4) In Visual Studio, Target Paltform is 'Any CPU' (though I have tried x86 also separatley but it does not work as I know current ssc.dll is only for 64 bit system)
4) My app works fine on two laptops having Windows 10 and Windows 11 updated to latest build. However, on another laptop having Windows 10 updated to latest build, I get the subject error. It cannot load or find the ssc.dll and gives the error. Error details are attached in the file
QUESTION #2
NREAL SAM software (ver 2025.4.1) also generated a header i.e. sscapi.h and a json file. Is it required in incase of c# (C sharp) ?
QUESTION #1
1) I am using c# and Visual Studio
2) I have developed an app using NREAL SAM module wherein ssc.cs and dll are used.
3) cs and dll are generated from software NREL SAM (ver 2025.4.16).
4) In Visual Studio, Target Paltform is 'Any CPU' (though I have tried x86 also separatley but it does not work as I know current ssc.dll is only for 64 bit system)
4) My app works fine on two laptops having Windows 10 and Windows 11 updated to latest build. However, on another laptop having Windows 10 updated to latest build, I get the subject error. It cannot load or find the ssc.dll and gives the error. Error details are attached in the file
QUESTION #2
NREAL SAM software (ver 2025.4.1) also generated a header i.e. sscapi.h and a json file. Is it required in incase of c# (C sharp) ?
Attachments:
Please Log in or Create an account to join the conversation.
- Paul Gilman
Less
More
- Posts: 5653
17 Jul 2025 09:33 #14160
by Paul Gilman
Replied by Paul Gilman on topic System.DllNotFoundException: Unable to load DLL 'ssc.dll'
Hi Asif,
1. Version 32 of SSC is 64-bit. From the information in the Word document you shared, it appears you are trying to run it on a 32-bit version of Windows 10. SSC will only run on 64-bit versions of Windows.
2. The sscapi.h header file is not required to run SSC from C#. SAM's code generator creates the header file for your reference. The JSON files created by the code generator contain lists of inputs and their values for the case from which you generated the code. These files are not required if you are using a different method in your code to assign values to inputs.
Best regards,
Paul.
1. Version 32 of SSC is 64-bit. From the information in the Word document you shared, it appears you are trying to run it on a 32-bit version of Windows 10. SSC will only run on 64-bit versions of Windows.
2. The sscapi.h header file is not required to run SSC from C#. SAM's code generator creates the header file for your reference. The JSON files created by the code generator contain lists of inputs and their values for the case from which you generated the code. These files are not required if you are using a different method in your code to assign values to inputs.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Asif K
- Topic Author
Less
More
- Posts: 14
17 Jul 2025 23:11 #14161
by Asif K
Replied by Asif K on topic System.DllNotFoundException: Unable to load DLL 'ssc.dll'
Apparently, it is 64 bit operating system, and counter checked it through various commands. I am not sure why it displays Win32 in the error details.
However, I found the solution at last. Reason was that few windows dll were missing in the C:\Windows\System32. I used the Dependency Walker, and it helped to find the missing dlld. Hence, the problem is resolved.
However, I found the solution at last. Reason was that few windows dll were missing in the C:\Windows\System32. I used the Dependency Walker, and it helped to find the missing dlld. Hence, the problem is resolved.
Please Log in or Create an account to join the conversation.
- Paul Gilman
Less
More
- Posts: 5653
21 Jul 2025 11:25 #14169
by Paul Gilman
Replied by Paul Gilman on topic System.DllNotFoundException: Unable to load DLL 'ssc.dll'
Hi Asif,
Thank you for letting us know about the solution you found.
If you happen to have a list of the missing dlls that you are willing to share, it might be helpful to others who run into the same problem.
Best regards,
Paul.
Thank you for letting us know about the solution you found.
If you happen to have a list of the missing dlls that you are willing to share, it might be helpful to others who run into the same problem.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- Asif K
- Topic Author
Less
More
- Posts: 14
22 Jul 2025 00:06 #14171
by Asif K
Replied by Asif K on topic System.DllNotFoundException: Unable to load DLL 'ssc.dll'
I lost the complete list but similar to following were missing:
MSVCP140.dll
VCRUNTIME140.dll
VCRUNTIME140_1.dll
MSVCP140.dll
VCRUNTIME140.dll
VCRUNTIME140_1.dll
Please Log in or Create an account to join the conversation.
Moderators: Paul Gilman