1 Reply Latest reply on Jun 1, 2012 3:17 PM by Greg Witkamp

    Driveworks Express Microsoft .NET Framework error

    Greg Witkamp

      I have an assembly sutup using driveworks express. Its generates all of the parts and subassemblies it is supposed to. Before it generates the final assembly i get this error. I have done this previously with success, so I am not sure where to look for my problem.

       

       

      See the end of this message for details on invoking

      just-in-time (JIT) debugging instead of this dialog box.

       

      ************** Exception Text **************

      System.NullReferenceException: Object reference not set to an instance of an object.

         at DriveWorksXpressCore.SolidWorksGeneration.GenerateModelNow(String AssemblyName, DrivePart clonePart, Engine engine, XMLProcessReportWriter& MyReport, Boolean ReportOnPresenceOfFile, Boolean LeaveFileOpen)

         at DriveWorksXpressCore.SolidWorksGeneration.EnsureSubAssembliesExist(String AssemblyName, DrivePart clonePart, String ParentFileName, String OldParentname, XMLProcessReportWriter& MyReport)

         at DriveWorksXpressCore.SolidWorksGeneration.GenerateModelNow(String AssemblyName, DrivePart clonePart, Engine engine, XMLProcessReportWriter& MyReport, Boolean ReportOnPresenceOfFile, Boolean LeaveFileOpen)

         at DriveWorksXpressCore.SolidWorksGeneration.EnsureSubAssembliesExist(String AssemblyName, DrivePart clonePart, String ParentFileName, String OldParentname, XMLProcessReportWriter& MyReport)

         at DriveWorksXpressCore.SolidWorksGeneration.GenerateModelNow(String AssemblyName, DrivePart clonePart, Engine engine, XMLProcessReportWriter& MyReport, Boolean ReportOnPresenceOfFile, Boolean LeaveFileOpen)

         at DriveWorksXpressCore.SWTaskPane.CreateModelsCore(Results[] inputResults)

         at DriveWorksXpressCore.SWTaskPane.CreateModels(Results[] InputResults)

         at DriveWorksXpressCore.FormRunner.BeginGeneration()

         at System.Windows.Forms.Control.OnClick(EventArgs e)

         at System.Windows.Forms.Button.WndProc(Message& m)

         at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       

       

      ************** Loaded Assemblies **************

      mscorlib

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)

          CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

      ----------------------------------------

      featurecplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/featurecplu.DLL

      ----------------------------------------

      System

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5453 (Win7SP1GDR.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

      ----------------------------------------

      msvcm90

          Assembly Version: 9.0.30729.4940

          Win32 Version: 9.00.30729.4940

          CodeBase: file:///C:/Windows/WinSxS/amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_08e4299fa83d7e3c/msvcm90.dll

      ----------------------------------------

      couplingBase

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/couplingBase.DLL

      ----------------------------------------

      CoreInterface

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/CoreInterface.DLL

      ----------------------------------------

      FeatureUI

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/FeatureUI.DLL

      ----------------------------------------

      FeatureWPF

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/FeatureWPF.DLL

      ----------------------------------------

      PresentationFramework

          Assembly Version: 3.0.0.0

          Win32 Version: 3.0.6920.5011 built by: Win7SP1

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll

      ----------------------------------------

      WindowsBase

          Assembly Version: 3.0.0.0

          Win32 Version: 3.0.6920.5011 built by: Win7SP1

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll

      ----------------------------------------

      PresentationCore

          Assembly Version: 3.0.0.0

          Win32 Version: 3.0.6920.5011 built by: Win7SP1

          CodeBase: file:///C:/Windows/assembly/GAC_64/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll

      ----------------------------------------

      FeatureOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/FeatureOperation.DLL

      ----------------------------------------

      Controls

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/Controls.DLL

      ----------------------------------------

      WPFRes

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/WPFRes.DLL

      ----------------------------------------

      UiBase

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/UiBase.DLL

      ----------------------------------------

      CmdInterface

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/CmdInterface.DLL

      ----------------------------------------

      PresentationFramework.Luna

          Assembly Version: 3.0.0.0

          Win32 Version: 3.0.6920.5011 built by: Win7SP1

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework.Luna/3.0.0.0__31bf3856ad364e35/PresentationFramework.Luna.dll

      ----------------------------------------

      System.Deployment

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

      ----------------------------------------

      System.Xml

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

      ----------------------------------------

      System.Configuration

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

      ----------------------------------------

      PresentationFramework.Aero

          Assembly Version: 3.0.0.0

          Win32 Version: 3.0.6920.4902 built by: NetFXw7

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework.Aero/3.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll

      ----------------------------------------

      clrloadu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/clrloadu.DLL

      ----------------------------------------

      annotationcplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/annotationcplu.DLL

      ----------------------------------------

      AnnotationUI

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/AnnotationUI.DLL

      ----------------------------------------

      AnnotationWPF

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/AnnotationWPF.DLL

      ----------------------------------------

      AnnotationOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/AnnotationOperation.DLL

      ----------------------------------------

      asmfeaturecplu

          Assembly Version: 1.0.4402.7145

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/asmfeaturecplu.DLL

      ----------------------------------------

      asmfeatureui

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/asmfeatureui.DLL

      ----------------------------------------

      asmfeaturewpf

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/asmfeaturewpf.DLL

      ----------------------------------------

      AsmFeatureOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/AsmFeatureOperation.DLL

      ----------------------------------------

      contentcplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/contentcplu.DLL

      ----------------------------------------

      ContentUI

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/ContentUI.DLL

      ----------------------------------------

      ContentOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/ContentOperation.DLL

      ----------------------------------------

      refgeomcplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/refgeomcplu.DLL

      ----------------------------------------

      RefGeomUI

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/RefGeomUI.DLL

      ----------------------------------------

      RefPlaneWPF

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/RefPlaneWPF.DLL

      ----------------------------------------

      RefGeomOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/RefGeomOperation.DLL

      ----------------------------------------

      sheetmetalcplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/sheetmetalcplu.DLL

      ----------------------------------------

      SheetMetalUi

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SheetMetalUi.DLL

      ----------------------------------------

      SheetMetalWPF

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SheetMetalWPF.DLL

      ----------------------------------------

      SheetMetalOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SheetMetalOperation.DLL

      ----------------------------------------

      Sketchcplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/Sketchcplu.DLL

      ----------------------------------------

      SketchUI

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SketchUI.DLL

      ----------------------------------------

      SketchWPF

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SketchWPF.DLL

      ----------------------------------------

      SketchOperation

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.55

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SketchOperation.DLL

      ----------------------------------------

      doccplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/doccplu.DLL

      ----------------------------------------

      assemblycplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/assemblycplu.DLL

      ----------------------------------------

      partcplu

          Assembly Version: 20.2.0.55

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/partcplu.DLL

      ----------------------------------------

      GdtAnalysisSupport

          Assembly Version: 8.2.2.0

          Win32 Version: 8.2.2.0

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/GdtAnalysisSupport.DLL

      ----------------------------------------

      GDTAnalysis.NET

          Assembly Version: 8.2.2.0

          Win32 Version: 8, 2, 2, 0

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/GDTAnalysis.NET.DLL

      ----------------------------------------

      DriveWorksXpressCore

          Assembly Version: 19.4.0.0

          Win32 Version: 19.4.0.1

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/DriveWorksXpressCore.DLL

      ----------------------------------------

      SolidWorks.Interop.swpublished

          Assembly Version: 19.0.0.133

          Win32 Version: 19.0.0.133

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/SolidWorks.Interop.swpublished.DLL

      ----------------------------------------

      System.Core

          Assembly Version: 3.5.0.0

          Win32 Version: 3.5.30729.5420 built by: Win7SP1

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

      ----------------------------------------

      System.Windows.Forms

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

      ----------------------------------------

      System.Drawing

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

      ----------------------------------------

      SolidWorks.Interop.swconst

          Assembly Version: 19.0.0.133

          Win32 Version: 19.0.0.133

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/SolidWorks.Interop.swconst.DLL

      ----------------------------------------

      SolidWorks.Interop.sldworks

          Assembly Version: 19.0.0.133

          Win32 Version: 19.0.0.133

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/SolidWorks.Interop.sldworks.DLL

      ----------------------------------------

      Microsoft.VisualBasic

          Assembly Version: 8.0.0.0

          Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

      ----------------------------------------

      SolidWorksTools

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.0.0

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/SolidWorksTools.DLL

      ----------------------------------------

      SolidWorks.Interop.swpartner

          Assembly Version: 19.0.0.133

          Win32 Version: 19.0.0.133

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/SolidWorks.Interop.swpartner.DLL

      ----------------------------------------

      DriveWorksXpressCore.resources

          Assembly Version: 19.4.0.0

          Win32 Version: 20.2.0.0055

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/en/DriveWorksXpressCore.resources.DLL

      ----------------------------------------

      System.Runtime.Remoting

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

      ----------------------------------------

      Infragistics2.Win.UltraWinExplorerBar.v7.3

          Assembly Version: 7.3.20073.38

          Win32 Version: 7.3.20073.38

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/Infragistics2.Win.UltraWinExplorerBar.v7.3.DLL

      ----------------------------------------

      Infragistics2.Shared.v7.3

          Assembly Version: 7.3.20073.38

          Win32 Version: 7.3.20073.38

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/Infragistics2.Shared.v7.3.DLL

      ----------------------------------------

      Infragistics2.Win.v7.3

          Assembly Version: 7.3.20073.38

          Win32 Version: 7.3.20073.38

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/Infragistics2.Win.v7.3.DLL

      ----------------------------------------

      Accessibility

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

          CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

      ----------------------------------------

      System.Data

          Assembly Version: 2.0.0.0

          Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

          CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

      ----------------------------------------

      Titan.Rules

          Assembly Version: 1.2.0.0

          Win32 Version: 1.2.0.52

          CodeBase: file:///C:/Program%20Files/SolidWorks%20Corp/SolidWorks/DriveWorksXpress/Titan.Rules.DLL

      ----------------------------------------

       

      ************** JIT Debugging **************

      To enable just-in-time (JIT) debugging, the .config file for this

      application or computer (machine.config) must have the

      jitDebugging value set in the system.windows.forms section.

      The application must also be compiled with debugging

      enabled.

       

      For example:

       

      <configuration>

          <system.windows.forms jitDebugging="true" />

      </configuration>

       

      When JIT debugging is enabled, any unhandled exception

      will be sent to the JIT debugger registered on the computer

      rather than be handled by this dialog box.