SolidWorks Enterprise PDM API, .NET Framework 4.0, and Visual Studio 2010
The SolidWorks Enterprise PDM API does not currently support .NET Framework 4.0 and displays the following message when loading an add-in targeted for .NET Framework 4.0:
“The Archive Server could not open the Windows Registry.”
To solve this problem, change your project’s target framework to .NET Framework 3.5 or earlier. However, after changing your project’s target framework to .NET Framework 3.5 or earlier, you might not be able to reference EdmInterface.dll because Visual Studio creates primary interop assemblies using the latest version of the .NET Framework. You can generate your own interop by using tlbimp.exe from an earlier version of .NET Framework. For example:
tlbimp EdmInterface.dll/sysarray/out:Interop.EdmLib.dll/namespace:EdmLib
Using .NET Framework 4.0 embedded interop types cause SolidWorks Enterprise PDM API calls involving arrays to fail. To solve this problem, disable type embedding from the referenced assembly Interop.EdmLib’s properties by setting Embed Interop Types to False in Visual Studio 2010:

SIGN UP for SolidWorks Express Newsletter and get the tips and tricks delivered into your inbox every two weeks!
Related posts:
- SolidWorks Enterprise PDM 2010 SP0 is now available SolidWorks Enterprise PDM 2010 SP0 is...
- Microsoft Surface at SolidWorks World 2010 The Research Group from DS SolidWorks...
Related posts brought to you by Yet Another Related Posts Plugin.

















