Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2 out of 5     Rate this Document

Error While Accessing Assembly When Editing a .NET Action Step in TestStand

Primary Software: TestStand
Primary Software Version: 4.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
Why do I receive the following error when I try to edit a .NET action step in TestStand?

Error while accessing the .NET assembly.

Could not load file or assembly 'mscorcfg, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.  The system cannot find the file specified.


Solution:
"mscorcfg.dll" is a .NET assembly that comes installed with the both .NET Framework Software Development Kit (SDK) and the .NET Framework Redistributable Package (Run-Time). This assembly is critical to running code written in a .NET language, and it must be registered in the GAC (Global Assembly Cache) on any TestStand development machine that needs to edit .NET action steps.

It is a common misconception that you must install the .NET Framework SDK in order to have this assembly; however, this is not true. In addition to this, some developers may try to "get around" installing the .NET run-time on deployment machines by copying over and registering "mscorcfg.dll" manually. National Instruments does not recommend this and under some circumstances, using this approach could cause you to violate Microsoft's End User License Agreement for deploying the .NET Framework.
 
For information on Microsoft's recommended approach for deploying the .NET Framework, please refer to the following MSDN topic: Redistributing the .NET Framework.

Related Links:

Attachments:





Report Date: 07/25/2007
Last Updated: 08/25/2007
Document ID: 4BOISQSN

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit