LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net error 1172

Solved!
Go to solution

Please check this link to determinate what version .net framwork do you have on your computer:

 

https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx

 

Since LabVIEW support .net 3.5, if your DLL was created in a different version you will have to create and config file for the LabVIEW.exe

 

Usually is difficult to know in whick version of .net the DLL was created so please try with this two links:

 

.net 4.0 http://digital.ni.com/public.nsf/allkb/32B0BA28A72AA87D8625782600737DE9 

other versions http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/configuring_clr_version/

 

Randy @Rscd27@
0 Kudos
Message 11 of 23
(3,340 Views)

Soren:

 

May have to do with .NET pack version on your PC.

 

If you are using LabVIEW version 14, then that version does support .net builds upto .NET Ver: 4.5. I received your same error to call or construct .NET dll myself in LabVIEW Ver 14 and resolved it by un-installing all .NET framework from  Control Panel >> Programs and Features, and then re-installing .NET Framework 4.5

 

The .NET Framework 3.5 limitation applies to LabVIEW 8.6 and below (I think). E.g as I write this I am using two .net dlls Ver 4.5 with LabVIEW 2014.

 

Anthony

0 Kudos
Message 12 of 23
(3,303 Views)

As I write this, MS Windows has evolved to Windows 10.

 

Now .NET support was released under Windows XP. It follows that the new releases of .NET may sometimes skip installing the intermediate versions that are sought after by other software processes.

 

I have found that Micorsoft releases two versions of .NET installers. The one which they call FULL PACKAGE version will install the previous .NET files. (sweet!)

 

For example these two versions are different:

.NET 4 FULL PACKAGE  66.8 mb

.NET 4 SHORT PACKAGE 997 kb

 

For best results use the larger full package option.

Smiley Wink

 

Anthony Lukindo

 

0 Kudos
Message 13 of 23
(3,092 Views)

@psuedo  작성:

I am trying to get access to the methods of a .net dll (assembly).  I am always getting error 1172, "error calling static method...access to the registry key is denied".    The static method is supposed to give me an instance of the object.  I'm working in LV2010.  I have tried:

 

- assembly is in the same directory as the calling vi.

- assembly is in the same directory as labview.exe

- tried both as a project and standalone vi

- I tried to add the assembly as a reference in tools>>import>>.net controls to palette.  When I browse to the dll, I get the message "This assembly contains no public control", so there is nothing to add to the destination folder.

- I added the dll path to the vi search path.

- used both a .net ref constant and a constructor from the net palette

 

My only remaining hope is to add the assembly to the GAC (global assembly cache), but this looks difficult.  Any suggestions greatly appreciated, as I am really stuck.




Mobarak
Download All
0 Kudos
Message 14 of 23
(2,508 Views)

Hi @pseudo:

 

Try two things:

 

1. On Windows search type:

 

                Windows features

 

You will get a utility to turn Windows features on or off.

 

Load that utility and find the node for .Net 3.0. Expand that node and enable all options. 

 

Hit Apply and OK etc.

 

 

2. Next be sure to install latest FULL version of full .Net package. There is a link to this full version 4.0 in one of the previous E-Mail. 

 

Reboot your PC and test your code.

 

Anthony

0 Kudos
Message 15 of 23
(2,505 Views)

LabVIEW GMap.Net code developed in 2015 using GMap.dlls Ver:1.7 suddenly stopped working. The fault was caused by no response from GMap.Net functions such as GetPoint.

 

After online search, I determined that Google has changed their Geocode service policy to require an API Key to be entered before calling Geocode service functions.

 

GMap.Net version 1.7 does not expose a property to write this API Key. I got GMap.Net version 1.9.8 that has this property, but the API Key I got from Google did not work.

 

https://www.nuget.org/packages/ZGabi.GMap.NET.Core/

https://www.nuget.org/packages/ZGabi.GMap.NET.WinForms/

 

Has anyone been able to continue using GMap.Net in LabVIEW, after assigning API Key, along with using its Geocode functions?

 

Regards

 

Anthony

0 Kudos
Message 16 of 23
(1,895 Views)

 

Error 1082 occurred at Property Node (arg 1) in GPS -Utility Show Locations.vi

 

sir I ran the example you have, I got an error. 1082 string error. Can you help me with this?

 

 

also thanks for everything in advance.

0 Kudos
Message 17 of 23
(1,754 Views)

Please refer to this article.

 

 

https://forums.ni.com/t5/LabVIEW/GMap-Net-in-LabVIEW-now-requires-API-Key/m-p/4036479#M1158036

 

You may need those new DLLs and you must use Google API Key.

 

Anthony

0 Kudos
Message 18 of 23
(1,739 Views)

Thanks for your answer. My problem is exactly as in this picture. If I press the dewam key, it will run and the map will load and the functions will work. But I want to understand exactly the source of this problem.

0 Kudos
Message 19 of 23
(1,722 Views)

Hello:

 

That error means that the Combo box was changed to become strictly typed.  

 

To solve that error you can do one of two things:

1. Open the control editor of the combo box and change strictly typed to typed def (see attached screen shot).This is because a strictly typed combo box will not allow you to again populate an array of values.

 

2. You can delete or replace that combo box with a new combo box that will NOT have the strictly-typed definition.

 

Here is a screen shot of the typed-def control editor feature which you must remove.

 

Anthony

0 Kudos
Message 20 of 23
(1,691 Views)