NI-RFSA, NI-RFSG .NET Error: Inheritance security rules violated while overriding member

Updated Mar 24, 2026

Issue Details

I have developed an application using Visual Studio, .NET and NI RF drivers such as NI-RFSA and NI-RFSG. When I attempt to build or debug the application, I am met with the error message such as the one shown in the screenshots below.
How can I correct this issue?

"Inheritance security rules violated while overriding member: 'NationalInstruments.ModularInstruments.NIRfsg.NIRfsg.Ivi.Driver.IIviDriver.get_DriverOperation()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden."

Solution

To correct this issue, perform the following: 

 

  1. Install the latest IVI Shared Components: 
    1. Shared Components | IVI Foundation 
  2. Install the NI IVI Compliance Package: 
    1. IVI Compliance Package Download - NI
  3. Ensure you have the support for .NET framework languages for your respective NI Driver installed.
    • You can check on this in NI Package Manager under the Installed Tab. See screenshots for example: 
    • If these packages don't appear under your installed tab, you can install them by modifying or updating your NI-RFSA or NI-RFSG driver, respectively.