473,806 Members | 2,605 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TypeLoadExcepti on: Can't find property implementation.

I'm getting the following error when I'm running my application (application
name changed for the example):

Unhandled Exception: System.TypeLoad Exception: Method get_ImageFile in type
MyApp.Plugin.De faultImageFiles .JPEGImage from assembly
MyApp.Plugin.De faultImageFiles , Version=1.0.293 4.26057, Culture=neutral ,
PublicKeyToken= null does not have an implementation.

My application is plugin-based. The class in question does have an
implementation of the ImageFile property with both a getter and setter. I've
verified that it is loading the proper version of the assembly from the
correct directory (it shows up in the Debug output with the path when it
loads the .DLL). I have verified, with reflector, that that copy of the DLL
does, in fact, have the implementation of the ImageFile property and yet, I
get the above exception when I try to call a method in the assembly.

The application, all of its DLLs, both plugin and otherwise, are all copied
to a single directory called "bin" by post-build events in all the projects
and the application is run in that directory.

JpegImage implements an interface called IMyAppImage. The interface
definition for the property is:

ImageFile ImageFile
{
get;
set;
}

(ImageFile is also a class defined in yet another assembly)

The implementation of the interface in JpegImage is simply:

public ImageFile ImageFile
{
get
{
return _imageFile;
}
set
{
_imageFile = value;
}
}

So, I'm stumped. Is there confusion being caused by the fact that the
property name is the same as a class name? I've never had that problem
before and I'd assume that the Size struct in System.Drawing would be
equally problematic if that were the case, since tons of classes implement
the property Size.

What else could be causing the problem?

Thanks.

Jan 13 '08 #1
1 5516
Nevermind. After hours of futzing with this, I finally discovered there was
a problem with one of the .DLLs. Please ignore the original post.
"Fredo" <fr***@hotmail. comwrote in message
news:Et******** *************** *******@giganew s.com...
I'm getting the following error when I'm running my application
(application name changed for the example):

Unhandled Exception: System.TypeLoad Exception: Method get_ImageFile in
type MyApp.Plugin.De faultImageFiles .JPEGImage from assembly
MyApp.Plugin.De faultImageFiles , Version=1.0.293 4.26057, Culture=neutral ,
PublicKeyToken= null does not have an implementation.

My application is plugin-based. The class in question does have an
implementation of the ImageFile property with both a getter and setter.
I've verified that it is loading the proper version of the assembly from
the correct directory (it shows up in the Debug output with the path when
it loads the .DLL). I have verified, with reflector, that that copy of the
DLL does, in fact, have the implementation of the ImageFile property and
yet, I get the above exception when I try to call a method in the
assembly.

The application, all of its DLLs, both plugin and otherwise, are all
copied to a single directory called "bin" by post-build events in all the
projects and the application is run in that directory.

JpegImage implements an interface called IMyAppImage. The interface
definition for the property is:

ImageFile ImageFile
{
get;
set;
}

(ImageFile is also a class defined in yet another assembly)

The implementation of the interface in JpegImage is simply:

public ImageFile ImageFile
{
get
{
return _imageFile;
}
set
{
_imageFile = value;
}
}

So, I'm stumped. Is there confusion being caused by the fact that the
property name is the same as a class name? I've never had that problem
before and I'd assume that the Size struct in System.Drawing would be
equally problematic if that were the case, since tons of classes implement
the property Size.

What else could be causing the problem?

Thanks.

Jan 13 '08 #2

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

Similar topics

14
2340
by: Stegano | last post by:
I am learning C Programming after working with Java for 5 years. I want to know where can I find the source files for C language itself. For example strcat is a function, which concatenates two strings. I want to read how this function is implemented in its native form, where can I find its corresponding .c file. I am using gcc version 3.3.1 (Thread model POSIX) on cygwin with Eclipse IDE. A grep on a function name lists many .h and .c...
9
7531
by: Desi Haker | last post by:
Hi there, I am trying to compile free C code from internet using cl(MSVC 7.1). This program use graphics.h header file. Unfortunatly this file is not standard C file. So, can any one help to find where can I get this file on MSVC 7.1 or any equivalent file for it. I really appreciate yoru help. Thanks,
22
3080
by: Tera | last post by:
can you please give me the link ?
5
3309
by: Jeroen Ceuppens | last post by:
I need to put a new node at the end of the tree, that end is not te lowest in de list but the deepest (the one with the most + before it) Node A Node 1 Node 2 Node 3 Node 4: Deepest Node B: not this one
1
1064
by: jack | last post by:
Hi all, After create a component, I can't find any validator. I searched all the properties. There was no such kind of property. Does anyone here can help me out? Thank you in advance jack
6
2786
by: bobueland | last post by:
The module string has a function called translate. I tried to find the source code for that function. In: C:\Python24\Lib there is one file called string.py I open it and it says
4
1085
by: W03L | last post by:
Hi. I created a CLR windows forms application and can't find alignment property for listBox to make it auto align to a top. For other components like progressBar, richTextBox there is also no this property. Can you tell me where it may be?
1
3246
by: ofiras | last post by:
In bitmap, how can I find the nearest pixel (pixel 1) to a specific pixel (pixel 2) that has different color from pixel 2? Or how can I find a pixel in a specific distance from pixel 2 (like a circle that pixel 2 is his center, and I'm looking for a pixel that has different color that pixel 2)? (I'm trying to do a voronoi diagram maker, so I need to search for the nearest colored pixel in my bitmap for every pixel that is not colored...
6
3076
by: Geon. | last post by:
hi everyone! when i install pysqlite i meet bellow error. ( use easy_install and source code building same problem ) ld: Can't find library for -lpython2.5 what mean this message? and what i do? my system is hp-ux 11i v3. and python2.5 is installed.
0
9598
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
10371
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
10373
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
10111
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...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
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
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
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
3852
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.