473,698 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BadImageFormatE xception....the DLL works in reflector though!??

hi :)

i am having a strange problem. i have a plug-in system that i use to
add support for various CAD file formats. i have a Maya plug-in that i
have been running successfully for quite some time (i.e. months). a
couple of days ago, however, i started getting a
BadImageFormatE xception when i tried loading my managed mayaplug.dll.
The DLL does in fact load up some unmanaged DLLs for support, but this
has never been a problem in the past. i used
www.sysinternals.com/filemon to look at the files that were being
loaded, but everything seemed to load as i expected. also, .NET
reflector was able to load the assembly and display information about
it. i am guess it is using a "reflection only" load or something,
because none of the support unmanaged DLLs show up in filemon when
using reflector.

the only difference i know of to the software is that, at a high level,
a different current directory is being set up front. my plug-in
actually changes the current directory while loading its dependent
DLLs, then changes it back to its original value...so i don't think
this would have any effect.

thank you for any help :)
n8

Jun 2 '06 #1
1 1853
<bump>

Jun 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
413
by: Erich Hofacker | last post by:
Hello, I have written an application in .NET (C#) which uses some stuff from the Microsoft.mshtml. Unfortunately some customers reported that they are missing this DLL. Therefore we now redistribute a copy of the Microsoft.mshtml-DLL with our installation routine (just copy it into the application directory). Now the application works on most machines, but on a couple of machines I get a "BadImageFormatException" (details below). What...
3
14905
by: Madhu Gopinathan | last post by:
Hi, I am facing a problem in .NET COM InterOp. I have a COM Dll which I want to use from my CSharp code. So, I import the TLB directly from the DLL using the tlbimp tool to a managed DLL. I add a reference to this managed DLL in my CSharp solution. Now, when I try to create a new instance of an object inherent in the COM DLL using MyObject object = new MyObject(); I recieve the error, An unhandled exception of type...
3
11963
by: Installutil System.BadImageFormatExcepti | last post by:
I've tried to make a Windows Service using the 2005 C# and when I go to use Installutil it returns with an System.BadImageFormatException error while intializing the installation. I've even gone as far as creating a service with 2003 C# that Installutil works with with then I try to upgrade the 2003 project to 2005 and then I start getting the excpetion again. Is there a known issues with this or s there a work around for this?
1
6724
by: cwjacklin | last post by:
I read this article on http://msdn.microsoft.com/msdnmag/issues/03/07/NET/ which describes how to invoke C win32 dll from C# But I am running into a weird situation. I have an existing C win32 dll which I want to call from C#. When I use syntax like this
4
4481
by: Roger Aikin | last post by:
I've converted a VB6 project to VB.Net 2005. (Actually using vstudio pro 2005). I'm on a machine that also has VB6 and Vstudio.net 2003 on it. The project uses Word, Excel, MapPoint and SqlClient (database is SqlServer 2000). OS is WinXP SP2. When I run the project, it opens the MDI form (MdiMain.vb) fine, but when I open one of the child forms and try to select something in a combo box (cboFilter2) it stops on a line of the...
1
1515
by: notis | last post by:
Hi all, I am trying to port an application developed with VS2003 to VS2005. The project builds successfuly but when I run it, it throws a BadImageFormatException in the following line of code in the constructor of my main form : .... if (!System.Messaging.MessageQueue.Exists(@".\Private$\CentralInQueue"))
3
1708
by: notis.stamos | last post by:
Hi all, I am trying to port an application developed with VS2003 to VS2005. The project builds successfuly but when I run it, it throws a BadImageFormatException in the following line of code in the constructor of my main form : .... if (!System.Messaging.MessageQueue.Exists(@".\Private$\CentralInQueue"))
4
9292
by: Glenn Palomar | last post by:
Hi, I have VB.net application that I recently migrated from VS2003 to VS2005. It works fine in Windows XP and 2K but NOT in XP64. I get an exception error that says System.BadImageFormatException. I checked the Advanced Compliler Settings and the Target CPU is set to AnyCPU. Setting it x64 does not make a difference. If I run my previous copy of the application built in VS2003 on the x64
4
2893
by: =?Utf-8?B?aWduaGVucnk=?= | last post by:
I have mixed-mode multi-file assembly of several netmodules and a dll. All are generated using c# compiler, vc++ compiler and vc++ linker from command prompt. I can browse the content of the assembly from vs.net ide and roeder's ..net reflector, but when I run a c# console project that references to the dll, it throws BadImageFormatException. I'm guessing the error probably has to do with compiler/linker option bits that are used to...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9014
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8855
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2320
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.