From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-05-2017 01:05 PM
Hello guys ,
I'm an engineer student , I'm doing a little project , I'm new with Labview and I have some a problem that i couldn't solve after completing my project .Vi I built a .exe the problem is when I test my Vi it works perfectly :
but when I build it to .exe I have a problem
the error message is
Error 1172 occurred at Nœud de méthode System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Npgsql, Version=2.0.4.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' or one of its dependencies. The system cannot find the file specified.
Possible reason(s):
LabVIEW: Une exception .NET s'est produite dans un assembly externe. Pour obtenir des informations sur comment corriger cette erreur, copiez l'exception suivante (en gras) et recherchez-la sur le site Web MSDN de Microsoft ou sur le Web pour trouver une explication possible.
System.IO.FileNotFoundException dans Config tracecom_BWI(SubVI).vi
I couldn't find any solution for this problem so I hope that you help me
Solved! Go to Solution.
07-05-2017 02:51 PM
Error 1172 occurred at Nœud de méthode System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Npgsql, Version=2.0.4.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' or one of its dependencies. The system cannot find the file specified.
Possible reason(s):
LabVIEW: Une exception .NET s'est produite dans un assembly externe. Pour obtenir des informations sur comment corriger cette erreur, copiez l'exception suivante (en gras) et recherchez-la sur le site Web MSDN de Microsoft ou sur le Web pour trouver une explication possible.
System.IO.FileNotFoundException dans Config tracecom_BWI(SubVI).vi
The problem is there in the error message - it is missing an assembly "Npgsql" (or rather a file Npgsql.dll). This is a dependency of the assembly you are using for your calls and needs to be present either in the same folder as the original assembly, a sub-folder of the LabVIEW project (or the LabVIEW Program Files path if you aren't using a project but you really should be) or the GAC. I suggest the first option.
07-05-2017 07:01 PM
thanks very much it worked perfectly 😉