Hide Table of Contents

Using .NET Framework 4.0 in Add-in Applications

SolidWorks Enterprise PDM versions... Support .NET Framework...
2013 and later 4.0, 3.5, 3.0, and 2.0
2009 and later 3.5, 3.0, and 2.0
2008 and earlier 2.0

If your SolidWorks Enterprise PDM 2012 or earlier version add-in application is compiled using Microsoft Visual Studio 2010 and .NET Framework 4.0, then SolidWorks Enterprise PDM displays the following message when you load the add-in:

“The Archive Server could not open the Windows Registry.”

  • C# or VB.NET

    To solve this problem, try changing your add-in project’s target framework to .NET Framework 2.0:

  1. Right-click the project in the Solution Explorer.
  2. Select Properties.
  3. Click Compile > Advanced Compile Options.
  4. Select .NET Framework 2.0 or earlier.
  5. Click OK.

After changing your project’s target framework to .NET Framework 2.0, you might not be able to reference the SolidWorks Enterprise PDM nnnn Type Library (EdmInterface.dll), because Visual Studio creates primary interop assemblies using the latest version of .NET Framework (4.0), and your project targets an earlier version of .NET Framework. If you encounter this problem, you can generate a compatible SolidWorks Enterprise PDM primary interop assembly by using the Microsoft's Type Library Importer (TlbImp.exe) that is included in an earlier version of the Microsoft .NET Framework SDK.

  1. Download and install a version of .NET Framework SDK that is compatible with your add-in project's version.
  2. Open a Windows Command Prompt.
  3. Navigate to C:\Program Files\Microsoft SDKs\Windows\vx.x\Bin in which the earlier .NET Framework version of TlbImp.exe is installed.
  4. Type TlbImp.exe install_dir\EdmInterface.dll /sysarray /out:Interop.EdmLib.dll /namespace:EdmLib.

    Typically install_dir is C:\Program Files\SolidWorks Enterprise PDM.


  • C++

    This problem can occur at runtime if the add-in failed to register its DLL during the build process. To solve this problem, ensure that your add-in registers the DLL:
    1. Open your C++ add-in project.
    2. Right-click the project in the Solution Explorer.
    3. Select Properties.
    4. Click Linker > Input.
    5. Configure Module Definition File to point to the add-in's project_name.def.
    6. Save the project.
    7. Click Build > Clean Solution.
    8. Click Build > Build Solution.

See Also

Using .NET Framework in Stand-alone Applications

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   Using .NET Framework 4.0 in Add-in Applications
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2014 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.