10-10-2013 06:32 PM
Hello NI world,
I'm a newbie to LabVIEW, and hope I might find some info on my issue.
I have a VI that takes a sequence of binary digits, creates an array, and sends the sequence out on USB. This works in LV2010. Last night I upgraded to LV2011, and the system reports an error: "Error 1172 occurred at Error creating instance of Form1 in assembly..." (see attached document for complete error message, and a piece of the flow.) I thought it might be due to obsolete .NET software, so I updated .NET to v4, with no change in behavior.
I adopted this code from another engineer, who is now off on new adventures. Now that I've mucked with it in LV2011, I can't open it in LV2010.
It appears the files in question are 'usbGenericHidCommunications.dll' and 'WFF Generic HID Demo 3.dll'
My Setup: PC, Windows-XP (SP3), LV2010 and now LV2011, .NET Framework 3.5 and 4
Any suggestions are welcome.
Thanks,
Duman
10-11-2013 01:33 AM
to be able to use .net 4 you should add a special file to the labview.exe folder.
Maybe that one is not in place
it is called LabVIEW.exe.config
and the contents is below this line
<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>
10-11-2013 09:30 AM
Albert,
Thank you for your quick reply, and the information regarding the .NET configuration. I will keep that for future reference.
It turns out the DLL was being referenced on an external network drive, on our internal network, and .NET perceived this as a 'security' issue.
Thanks again!
Duman