Jump to content

Calling dotNet(C3) code


Recommended Posts

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
 
 
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.