- Revenera Community
- InstallShield Forum
- DotNetCoCreateObject fails to load .NET 5 DLLs
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Printer Friendly Page
DotNetCoCreateObject fails to load .NET 5 DLLs
I have a DLL originally compiled in .NET Framework 4.7.1 which exposed some classes and methods using COM. I used DotNetCoCreateObject to create an instance and it was working fine.
However, I have recently migrated it to .NET 5 and not the InstallShield fails to load it with following error:
Installshield is probably still pointing to the previous .NET version files during your builds. Try specifying the .NET v5 files that Installshield can use during build time:
- Within Installshield select: Tools > ".NET" tab
- Here you can specify the .NET Framework File locations that Installshield should use.
There is more information here:
Thanks for the reply. However, The .NET 5 is not installed in "C:\Windows\Microsoft.NET\Framework" location. It is installed in "C:\Program Files\dotnet".
Also, .NET 5 does not seem to have "Regasm.exe". Can you let me know how to handle COM DLLs compiled in .NET 5 in InstallShield?
Did you ever find a fix for this as I have the same problem with .NET dlls having converted from .NET 4.8?
Thanks in advance.