LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1172

I am getting the following error calling a .net libary.

 

Error calling method KB.KEAT.TestStandConfig.Reader.Importer.Read, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 Inner Exception: System.FormatException: String was not recognized as a valid DateTime.) <append><b>System.FormatException</b> in profinet interface.vi

 

can anyone offer some suggestions as to what is happening. The .net  was created in net 3.5 and I have version 4.5

 

thanks

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 1 of 3
(2,831 Views)

Add this file to your LabVIEW directory.  yes, right in the same folder as  "LabVIEW.exe"

 

Now, of course you want to know why.  See Here

 

OH FOR SHAME!  Cant attach *.config

here is the cleaar text

 

"

<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(2,814 Views)

I already have this .config file. Pointing to the appropriate version of .NET (4.0.30319) If i point it to v4.5.50709 it fails asks me to install it (it is in the program manager). The framework i am trying to use was built in v3.5 so should work in either version, but the only similar problem i have seen is this link but it involves dates from .NET to labview, not the other way round

 

thanks for your help

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 3 of 3
(2,782 Views)