Error 1172 When Building .Net Interop Assembly

Updated May 7, 2019

Reported In


  • LabVIEW 2016
  • LabVIEW 2018

Issue Details

An exception is thrown when building a .net interop asseimbly in LabVIEW. 
Code:1172 Invoke Node System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. Inner Exception: System.IO.IOException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) System.IO.IOException in>>>


Access denied errors often occur when the user does not have the correct permissions to access the files/location. 

  • Ensure that no other software are accessing the file/folder of interest.
  • Firewall is turned off.
  • Run LabVIEW as Administrator.