Click here to Skip to main content
15,919,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Removing elements during iteration through a Dictionary Pin
mav.northwind28-Apr-05 21:14
mav.northwind28-Apr-05 21:14 
GeneralRe: Removing elements during iteration through a Dictionary Pin
johtib29-Apr-05 10:44
johtib29-Apr-05 10:44 
QuestionWhat is the right way to create inherited classes derived from System.Windows.Forms.TextBox? Pin
rudy.net28-Apr-05 8:37
rudy.net28-Apr-05 8:37 
AnswerRe: What is the right way to create inherited classes derived from System.Windows.Forms.TextBox? Pin
Fernando Soto28-Apr-05 17:37
Fernando Soto28-Apr-05 17:37 
GeneralRe: What is the right way to create inherited classes derived from System.Windows.Forms.TextBox? Pin
rudy.net29-Apr-05 4:38
rudy.net29-Apr-05 4:38 
GeneralMS SQL 2005 Express user Id and Password Pin
Jassim Rahma28-Apr-05 6:41
Jassim Rahma28-Apr-05 6:41 
GeneralRe: MS SQL 2005 Express user Id and Password Pin
Luis Alonso Ramos28-Apr-05 7:54
Luis Alonso Ramos28-Apr-05 7:54 
GeneralDLL HELL! Pin
James Simpson28-Apr-05 5:44
James Simpson28-Apr-05 5:44 
Hi All,

I have a problem which is driving me barmy. I am writing a VS.NET integration package which refereces a API which contains a data layer and a web control layer. When the package is loaded by the studio and I attempt to invoke a form from UITypeEditor.EditValue on a property in a web control in design mode I can not cast the value parameter (which is a type from the API) from 'object' to its correct type, the layout below might help:

1) Package Directory:

API Assembly
Package Assembly

2) VS.NET ID Directory

API Assembly (needs to be here so the property grid can load it)

3) Web Project Running in design mode with the package loaded has a reference to the API Assembly (from the IDE Folder)

In UITypeEditor.EditValue I am doing this:

Criteria c1 = (Criteria)value; // Specified Cast is not valid (also if(value is Criteria) fails)
Criteria c2 = new Criteria();

In debug, the watch reveals the the 'value' object is infact a Criteria object, however they are loaded from two different assemblys. The versions are identical, but the locations are different:

The Location for 'value' comes from a temporary projects assembly folder (more than likely created and managed by visual studio), however 'c2' is coming from the API Assembly in the VS.NET Directory. This is probably because the call is within the context of the vs.net property grid which has loaded its dll from there.

Now, I am hoping there is a correct method of getting around this!

Regards, James Simpson

James Simpson
Web Developer
imebgo@hotmail.com

P S - This is what part of the alphabet would look like if Q and R were eliminated
Mitch Hedberg

GeneralRe: DLL HELL! Pin
Marc Clifton28-Apr-05 5:55
mvaMarc Clifton28-Apr-05 5:55 
GeneralRe: DLL HELL! Pin
James Simpson28-Apr-05 6:34
James Simpson28-Apr-05 6:34 
QuestionWatchdog.sys What does it monitor? Pin
DeepToot28-Apr-05 5:07
DeepToot28-Apr-05 5:07 
GeneralSoapReciever class not doing anything Pin
Member 191967028-Apr-05 4:58
Member 191967028-Apr-05 4:58 
GeneralMonitor Memory Pin
jinzhecheng28-Apr-05 4:47
jinzhecheng28-Apr-05 4:47 
GeneralRe: Monitor Memory Pin
Dave Kreskowiak28-Apr-05 5:07
mveDave Kreskowiak28-Apr-05 5:07 
GeneralRe: Monitor Memory Pin
jinzhecheng28-Apr-05 5:12
jinzhecheng28-Apr-05 5:12 
GeneralRe: Monitor Memory Pin
Dave Kreskowiak28-Apr-05 8:03
mveDave Kreskowiak28-Apr-05 8:03 
GeneralRe: Monitor Memory Pin
leppie28-Apr-05 6:04
leppie28-Apr-05 6:04 
GeneralRe: Monitor Memory Pin
Anonymous28-Apr-05 6:55
Anonymous28-Apr-05 6:55 
GeneralRe: Monitor Memory Pin
Tom Larsen28-Apr-05 11:13
Tom Larsen28-Apr-05 11:13 
GeneralRe: Monitor Memory Pin
Andy Brummer28-Apr-05 11:24
sitebuilderAndy Brummer28-Apr-05 11:24 
GeneralUtility to convert VC++ to C# Pin
shyampillai28-Apr-05 4:24
shyampillai28-Apr-05 4:24 
GeneralRe: Utility to convert VC++ to C# Pin
Dave Kreskowiak28-Apr-05 5:04
mveDave Kreskowiak28-Apr-05 5:04 
GeneralImage Property Definition Pin
terrier_jack28-Apr-05 4:16
terrier_jack28-Apr-05 4:16 
GeneralRe: Image Property Definition Pin
mav.northwind28-Apr-05 4:58
mav.northwind28-Apr-05 4:58 
GeneralAccess Attachment from EmailServer Pin
Azizur Rehman28-Apr-05 1:23
Azizur Rehman28-Apr-05 1:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.