LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net dll EventLogPermission

Hi all,
 
Appologies if this question relates more to a .NET/Windows issue rather than LabView 8.
 
I have created a class library assembly in VB.NET with numerous functions.  One function is to write to the windows event log (Control Panel, Administrative Tools, Event Log).
 
The assembly is called up from a LabView 8 vi, and the functions work fine at design time (i.e. they are all visible and callable).  However, once the project is compiled and deployed as an exe, I get an SystemDiagnostics.EventLogPermission.  I've had a look on Google, an I believe it be permissions with the assembly itself.  Some of the solutions include:
- Increasing trust of the assembly on the local machine by going to Control Panel, Administrative Tools, Microsoft .NET Framework 1.1 Configuration, Configure Code Access Security Policy.
 
- Caspol.exe
 
Any ideas?
 
Thanks,
Ynyr
0 Kudos
Message 1 of 2
(2,371 Views)
Hi Ynyr,

The class library you created in VB.NET might behave differently when the directory structure is not carried along to a LabVIEW built executable. In other words, the location of the related files along with the windows event log might not be initialised in your built executable.

What have you done since you posted this question to debug this issue so far? Also, how are you handling permissions?

Regards,
0 Kudos
Message 2 of 2
(2,307 Views)