473,395 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Very Very strange Assembly problem

Hi,

I have a custom string collection editor for my property grid.

when I set the property.customEditor, I found to my amazement that you can't instantiate a new object from an assembly that's loaded dynamically.

Test code:
CollectionEditor editor = (CollectionEditor)myAssembly.CreateInstance("xxx.x xx.xxx.MyStringCollectionEditor"); // full name
CollectionEditor editorLocal = new MyStringCollectionEditor(); // instantiated same class from the local assembly code.

At this point, both "editor" and "editorLocal" are initialized correctly, are NOT null, and are browsable using a debugger. both seem IDENTICAL in content.

However...
property.CustomEditor = editorlocal // this line works....
property.CustomEditor = editor; // this line doesn't work. it defaults to the non-workin string collection editor that can't edit strings becuase they have no constructors.

I am going crazy. What's going on?

Thanks

Ron

Nov 7 '06 #1
0 803

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

Similar topics

0
by: serge calderara | last post by:
Dear all, I have a really strange beaviour in my application. First of all I have a single plugin interface named IPlugIn which as been build in a separate project library named PLugin.dll...
3
by: Don McNamara | last post by:
Hi, I've hit quite a strange problem with XmlSerializer on my W2K3 server. When I serialize/deserialize using an exe on my local computer (XP), everything works fine. When I put the code out on...
0
by: Gerhard Menzl | last post by:
I got no response to this in microsoft.public.dotnet.framework.interop, and since it is a C++-related problem, I am now trying it here: I am using an Interop assembly for communication between my...
0
by: Mikael Engdahl | last post by:
Hello I am using a third party assembly that worked perfectly for a couple of days and then suddenly doesn't work at all. I get this error message: "File or assembly name System, or one of...
0
by: Nonee | last post by:
Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net...
3
by: TheSteph | last post by:
Hi, I have a small serializable struct : public struct TestStruct { public string Title; public int Age; public string Name;
0
by: =?Utf-8?B?WWFlbA==?= | last post by:
Hi, I created a com add-in for outlook 2003 in vs.net 2003 c#. Only if I had an Icon to the button of the outlook commandBtnBar I have this problem: (if I don't had this class for the button, I...
5
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I have a strange behaviour on the use of delagate. I will try to explain. I have an assembly (Lets call it AssmDB) which contains database function operation like Insert, Delete,...
4
by: nightscorpion | last post by:
Hello Gurus, i implemented the OpenFileDialog in my Windows Form Applications and it worked perfectly fine.However when it was run on a remote desktop i got the below error . ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
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...
0
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...
0
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...

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.