Hadto rebuild my Project (.DLL) using 3.51....Now when I load/run the DLL, I get the following error:
Unhandled Exception occurred in a component in your application. If you click Continue...blah...blah..blah
Could not load file or assembly "interop.MSXML2, Version 6.0.0.0....blah blah blah
Then:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.MSXML2, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.MSXML2, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null'
at ClassLibrary1.clsCompressXML.LoadFile(String FileName, Boolean& bFileLoaded)
at ClassLibrary1.frmXMLtoFDV.LoadXMLFile()
at ClassLibrary1.frmXMLtoFDV.btnLocateXML_Click(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 (RTMGDR.030319-2300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
acdbmgd
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AcdbMgd.DLL
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.6161
Win32 Version: 9.00.30729.6161
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43/msvcm...
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.232 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System....
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/Sys...
----------------------------------------
PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364...
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/Window...
----------------------------------------
PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/Pre...
----------------------------------------
System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System...
----------------------------------------
AdApplicationFrame
Assembly Version: 0.0.0.0
Win32 Version: 3.0.264.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AdApplicationFrame.DLL
----------------------------------------
AdWindows
Assembly Version: 3.0.263.0
Win32 Version: 3.0.263.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AdWindows.DLL
----------------------------------------
PresentationFramework.Classic
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Classic/v4.0_4.0.0.0__31bf3...
----------------------------------------
acmgd
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/acmgd.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a...
----------------------------------------
AcWindows
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AcWindows.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.225 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System...
----------------------------------------
AcWindows.resources
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/en-US/AcWindows.resources.DLL
----------------------------------------
AcCui
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AcCui.DLL
----------------------------------------
AcDialogToolTips
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AcDialogToolTips.DLL
----------------------------------------
AcDialogToolTips.resources
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/en-US/AcDialogToolTips.resources.DLL
----------------------------------------
ContextualTabSelectorRules
Assembly Version: 0.0.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AcWindows.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.235 built by: RTMGDR
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e0...
----------------------------------------
WindowsFormsIntegration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad3...
----------------------------------------
ManagedMC3
Assembly Version: 4.11.0.0
Win32 Version: 4.12.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/ManagedMC3.DLL
----------------------------------------
PresentationFramework.Aero
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856...
----------------------------------------
PresentationFramework.Luna
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Luna/v4.0_4.0.0.0__31bf3856...
----------------------------------------
AcLayer
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/AcLayer.DLL
----------------------------------------
AcLayer.resources
Assembly Version: 18.1.0.0
Win32 Version: 18.1.49.0.0
CodeBase: file:///C:/Program%20Files/Autodesk/AutoCAD%202011/en-US/AcLayer.resources.DLL
----------------------------------------
AutoVSL
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/data/fd-ac2011/dev/AutoVSL.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 10.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d5...
----------------------------------------
************** 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.
Wild stab in the dark, but check your references; the report is showing .NET v4.0 assemblies. Not sure about the Interop for XML... if you are using the System.XML namespace the MSXML COM interface should not be necessary.
Problem is....if I remove the MSXML COM interface...then I will have to "rewrite a bunch of code.....a bunch"..that is already written (by someone else) and working....of course, only on my machine when compiled as a 4.0 DLL....
I tried that....and got stuck on some calls that I hav no idea what their purpose is...and dont work using 3.51 framwork.
Ugh. I *hate* heterogenous code (COM here, VBScript there, .NET in that chunk, etc.) - it always leads to problems like you are having, and looking like something from Red Green.
Sounds like a bunch of stuff was created using the new features in the v4.0 Framework. You either need to futz around with settings and installs to get it working on their computers with new Framework or futz around with the code to get it 3.5 compliant. For my money, if its not working *anyways*, you might as well take the time to figure out what and how the code is getting the job done while you down-version it.
'....its not working anyways..."
Well, thats what I don't understand....it works fine on my machine (the 4.0 DLL version)....but not on other machines?
I even went to a another machine (I have posted this in another thread)...downoaded/installed .NET Framework 4.0, copied my acad.exe.config to his machine......and he can't load the DLL..says something about..."it was created in a newer version of the run-time..."......????
To me this total BS....what kind of env (.NET -> ACAD) do we have here to work in?
Anyway, thanks for your advice..its always helpful
I feel your frustration - I've been there with similar brick walls across a number of different programming languages. Once I get to this point, I usually take off and nuke the site from orbit rather than thrashing about trying to reason with the Queen xenomorph .
Managed .NET is a huge step up from VBA. Its probably closer to ObjectARX in complexity than it is to LISP. With the retirement of VBA in the very near future AutoCAD is very much lacking a mid-range programming solution which provides a reasonable amount of power without requring the obssessive-compulsive attention to detail needed in .NET. I'm not sure the programmers who implement the various customization interfaces got that fact immediately. I'm sure for them (full time programmers) its "Duh simple" but for those of us who don't do programming day in, day out .NET isn't a good substitute for a mid-level solution like VBA.