P
Phil Jollans
Hi
I have received an error message from a user of my software, which is an
Add-In for Visual Studio 2005. The user is using a French version of Visual
Studio.
A BadImageFormatException occurs, and it appears that the FileName property
in the BadImageFormatException structure is an empty string.
The stack trace is as follows:
à System.ModuleHandle._GetPEKind(Int32& peKind, Int32& machine)
à System.ModuleHandle.GetPEKind(PortableExecutableKinds& peKind,
ImageFileMachine& machine)
à System.Reflection.Module.GetPEKind(PortableExecutableKinds& peKind,
ImageFileMachine& machine)
à System.Reflection.Assembly.ComputeProcArchIndex()
à System.Reflection.Assembly.GetName(Boolean copiedName)
à System.Reflection.Assembly.GetName()
à
System.ComponentModel.Design.RuntimeLicenseContext.CaseInsensitiveManifestResourceStreamLookup(Assembly
satellite, String name)
à
System.ComponentModel.Design.RuntimeLicenseContext.GetSavedLicenseKey(Type
type, Assembly resourceAssembly)
à
System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo(Int32&
fDesignTime, IntPtr& bstrKey, RuntimeTypeHandle rth)
à MultiLang.modGlobalDbUtil.OpenGlobalDatabaseConnection()
à MultiLang.ctlToolWindow.InitAddInWindow(DTE newVal)
à MultiLang.Connect.OnConnection(Object application, ext_ConnectMode
connectMode, Object addInInst, Array& custom)
The last function in my software is
MultiLang.modGlobalDbUtil.OpenGlobalDatabaseConnection
which opens an ADO database connection to an mdb (access 2000) database
file.
This is ADO and not ADO.NET.
I have simply no idea why execution is entering LicenseManager code. I have
tried putting a breakpoint in this module (via the disassembly window) but
as far as I can tell it is not entered on my system.
I am totally baffled by this error and would appreciate any help.
Thanks in advance,
Phil
I have received an error message from a user of my software, which is an
Add-In for Visual Studio 2005. The user is using a French version of Visual
Studio.
A BadImageFormatException occurs, and it appears that the FileName property
in the BadImageFormatException structure is an empty string.
The stack trace is as follows:
à System.ModuleHandle._GetPEKind(Int32& peKind, Int32& machine)
à System.ModuleHandle.GetPEKind(PortableExecutableKinds& peKind,
ImageFileMachine& machine)
à System.Reflection.Module.GetPEKind(PortableExecutableKinds& peKind,
ImageFileMachine& machine)
à System.Reflection.Assembly.ComputeProcArchIndex()
à System.Reflection.Assembly.GetName(Boolean copiedName)
à System.Reflection.Assembly.GetName()
à
System.ComponentModel.Design.RuntimeLicenseContext.CaseInsensitiveManifestResourceStreamLookup(Assembly
satellite, String name)
à
System.ComponentModel.Design.RuntimeLicenseContext.GetSavedLicenseKey(Type
type, Assembly resourceAssembly)
à
System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo(Int32&
fDesignTime, IntPtr& bstrKey, RuntimeTypeHandle rth)
à MultiLang.modGlobalDbUtil.OpenGlobalDatabaseConnection()
à MultiLang.ctlToolWindow.InitAddInWindow(DTE newVal)
à MultiLang.Connect.OnConnection(Object application, ext_ConnectMode
connectMode, Object addInInst, Array& custom)
The last function in my software is
MultiLang.modGlobalDbUtil.OpenGlobalDatabaseConnection
which opens an ADO database connection to an mdb (access 2000) database
file.
This is ADO and not ADO.NET.
I have simply no idea why execution is entering LicenseManager code. I have
tried putting a breakpoint in this module (via the disassembly window) but
as far as I can tell it is not entered on my system.
I am totally baffled by this error and would appreciate any help.
Thanks in advance,
Phil