Bjarne Joergensen Posted January 3, 2013 Report Share Posted January 3, 2013 Hi I got some C# dlls that I have to use in LabVIEW. It is written in dotNET 4 It works fine in LV2012, but I shall use it in LV 8.2.1. When I use it in LV8.2.1 I get the following error.: Error 1172 occurred at Error calling method VesTest.Common.Utils.SoftwareUpload.Strategies.PhoenixSoftwareUpload.AutoIpDetectingPhoenixSoftwareUploadStrategy.Upload of ObjectId handle: 0xC9911C4 for obj 0x8AB23E[VesTest.Common.Utils.SoftwareUpload.Strategies.PhoenixSoftwareUpload.AutoIpDetectingPhoenixSoftwareUploadStrategy] in domain [8.2.1 SWupload project.lvproj for Run] and thread 6368, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. Inner Exception: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for GeneralUserSettings: Could not load file or assembly 'Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. (C:UsersbjajAppDataRoamingFirecrestFirecrest.config line 8) Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.) in 8.2.1 SWupload.vi Possible reason(s): LabVIEW: A .NET exception occurred. There is a txt-file that the error refer to. Here is the text from it and line 8 in red: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="AutoSyncReleasePackagesSettings" type="Vestas.Firecrest.ConfigurationManagement.AutoSyncReleasePackagesSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> <section name="CleanUpSection" type="Vestas.Firecrest.ConfigurationManagement.CleanUpConfigurationSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> <section name="CleanUpUserSettings" type="Vestas.Firecrest.ConfigurationManagement.CleanUpUserSettingSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> <section name="ConfigurationSettings" type="Vestas.Firecrest.ConfigurationManagement.ConfigurationSettingsSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> <section name="GeneralUserSettings" type="Vestas.Firecrest.ConfigurationManagement.GeneralUserSettingsSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> <section name="ShowIPSelectorSettings" type="Vestas.Firecrest.ConfigurationManagement.ShowIPSelectorSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> <section name="ShowWelcomeDialogSettings" type="Vestas.Firecrest.ConfigurationManagement.ShowWelcomeDialogSection, Vestas.Firecrest.Common, Version=4.1.0.90, Culture=neutral, PublicKeyToken=null" /> </configSections> <AutoSyncReleasePackagesSettings AutoSyncReleasePackagesOnStartup="false" /> <CleanUpSection LastCleanUpDate="12/19/2012 11:24:23" /> <CleanUpUserSettings PromptBeforeCleanUp="Yes" HistoricalDataOverwriteOnConnect="NotSpecified" TimeBetweenCleanUp="60.00:00:00" MaxDiskQuota="10737418240" /> <GeneralUserSettings PromptBeforeExit="true" /> <ShowIPSelectorSettings ShowIPSelectorOnConnect="true" /> <ShowWelcomeDialogSettings ShowWelcomeDialogOnStartup="true" /> </configuration> I have placed the file "LabVIEW.exe.config" in the LV 8.2.1 directory with this content: <?xml version ="1.0"?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0.30319"/> </startup> </configuration> Does anyone knows what to do? Thank in advance Bjarne Quote Link to comment
Ton Plomp Posted January 3, 2013 Report Share Posted January 3, 2013 Have you looked at this (changing GAC version), it mentions that it works from 8.5 but perhaps. Ton Quote Link to comment
Bjarne Joergensen Posted January 3, 2013 Author Report Share Posted January 3, 2013 (edited) Hi Ton Thank you, but my problem is not switching between different versions of dotNET. The version(4.0) I want to use seems not to work in 8.2.1. I used this to tell LV which dotNET version to load. regards Bjarne Edited January 3, 2013 by Bjarne Joergensen Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.