04-16-2025 01:51 AM
i have dll build on .net 8 framework i want to accees it from labview 2025. I installed the lattest labview version 2025. Which says it support .net 8 assembly. But while connecting that dll in constructor node. it says error occured trying to load the assembly. what the solution for that.
Solved! Go to Solution.
04-16-2025 02:58 AM
LabVIEW 2015Q1 has support for some .Net 8 features but by far not all. And it may never have support for for instance methods with template datatypes, just as the .Net support in previous LabVIEW versions. At this time .Net 8 support in LabVIEW while present has a good chance to not work for your more complex .Net assmblies.
04-16-2025 03:04 AM
Hello,
04-16-2025 03:11 AM
no dll is very simple with has one function that returns string 'Test'
04-16-2025 03:52 AM
And can you provide the entire project with sources?
04-16-2025 04:32 AM
here is the three dlls and i wnat to connect to discoverprinter.dll can you give me code using constructor node
04-16-2025 11:54 AM
The "error occurred trying to load the assembly" is a thing that can happen for at least 10 different reasons and it's annoying that LabVIEW doesn't even give a hint as to why it can't load it.
Possible reasons include:
04-16-2025 11:23 PM
Here i attach two simple dll with code it has and it is build on .net 8 and .net 4.8 framework build spec is any cpu.
Public Class MathHelper
Public Shared Function AddNumbers(a As Integer, b As Integer) As Integer
Return a + b
End Function
End Class
if I call this dll using constructor node in labview 2025 it shows an error occured trying to load assembly.
but than I build this dll in .netframwork 4.8 it works in labview 2025.
as per 2025 Q1 release says it support .net 8 aasemblies. but it is not supporting. what is the issue here i attach both dll.
need help
04-17-2025 01:48 AM
04-17-2025 02:19 AM
Its working thank you for the solution. Here i am not selecting .net core constructor. thats why i faced issue.