Introducing DraftSight, a free 2D drafting tool-new from Dassault Systèmes
Thu, 24/06/10 – 10:57 | View Comments

As much as we all love 3D, it’s no secret that a lot of you out there still use, reference, edit, even create, 2D files now and then. It’s also no secret that Dassault Systèmes …

Read the full story »
Community

The SolidWorks Community is filled with extremely passionate engineers–you can find them all here!

Downloads

Download new versions and updates (Service Packs) for SolidWorks, Simulation, PDM, 3DVIA, and Free CAD Tools .

Events

From international conferences to local user group meetings, you’ll find a vast network of other users all around Asia Pacific.

News

What’s the latest from SolidWorks? Stay up to date and in the know with our daily news.

Tips & Tricks

Get the most out of SolidWorks with our exclusive product tips & tricks!

Home » SolidWorks Tips and Tricks

SolidWorks Enterprise PDM API, .NET Framework 4.0, and Visual Studio 2010

Submitted by SolidWorks Express on Monday, 28 June 2010View Comments

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:

  1. SolidWorks Enterprise PDM 2010 SP0 is now available SolidWorks Enterprise PDM 2010 SP0 is...
  2. Microsoft Surface at SolidWorks World 2010 The Research Group from DS SolidWorks...

Related posts brought to you by Yet Another Related Posts Plugin.

blog comments powered by Disqus