Click here to Skip to main content
16,004,761 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Throw it like you mean it... Pin
supercat925-Aug-09 5:25
supercat925-Aug-09 5:25 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:40
Adriaan Davel25-Aug-09 19:40 
GeneralRe: Throw it like you mean it... Pin
supercat926-Aug-09 5:40
supercat926-Aug-09 5:40 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel30-Aug-09 19:33
Adriaan Davel30-Aug-09 19:33 
GeneralRe: Throw it like you mean it... Pin
supercat931-Aug-09 5:11
supercat931-Aug-09 5:11 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel31-Aug-09 19:30
Adriaan Davel31-Aug-09 19:30 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel31-Aug-09 0:39
Adriaan Davel31-Aug-09 0:39 
QuestionRecognizing an object instance after regenerating dinamicly the assembly Pin
Mehdi_S21-Aug-09 0:06
Mehdi_S21-Aug-09 0:06 
Hi,

I'm working on generating dynamically an assembly to let a user customize things. To do that, I used CSharpCodeProvider to generate the assembly and that worked fine till I encountered the problem of recognizing an instance created with the first version of the assembly after getting a second version.

So here are the steps I followed:

1- I generated an assembly containing a class called "Class_1" which just has an attribute called "Name".
2- I created instance of that and added it to a set.

For now, I can display all the item of the set (I used a main class Root which is created not dynamically and from which all the dynamic classes will inherit from).

3- I regenerated the assembly after adding "Class_2" which inherits from Root too and have a method that get as parameter a "Class_1" instance and that displays the name of the instance.

4- I created an instance of the second class and called its method with the "Class_1" instance that I created before. Doing that raised the following exception:

Object of type 'TestProject_CustomClassesLibrary.Class_1' cannot be converted to type 'TestProject_CustomClassesLibrary.Class_1'.

I searched on the net about that and I found multiple things:
* Signing the assembly the GAC but when I tried it, nothing changed.
* Using domain application but this require stopping the application each time we want to generate I guess (did not tried it by the way). So that's not a solution for me.

Is there any solution for that? What should I do to make this work?

Thanks for all.
QuestionKeeping Command Console Open After Running Process Pin
Tristan Rhodes20-Aug-09 23:45
Tristan Rhodes20-Aug-09 23:45 
AnswerRe: Keeping Command Console Open After Running Process Pin
Alan N21-Aug-09 7:38
Alan N21-Aug-09 7:38 
AnswerRe: Keeping Command Console Open After Running Process Pin
qmartens22-Aug-09 19:46
qmartens22-Aug-09 19:46 
GeneralRe: Keeping Command Console Open After Running Process Pin
Alan N23-Aug-09 7:08
Alan N23-Aug-09 7:08 
GeneralRe: Keeping Command Console Open After Running Process Pin
Tristan Rhodes23-Aug-09 22:59
Tristan Rhodes23-Aug-09 22:59 
Questionautopositioning in visual studio 2008 Pin
myinstincts20-Aug-09 21:28
myinstincts20-Aug-09 21:28 
AnswerRe: autopositioning in visual studio 2008 Pin
Eddy Vluggen20-Aug-09 22:34
professionalEddy Vluggen20-Aug-09 22:34 
Questionpartition in windows form Pin
myinstincts20-Aug-09 19:20
myinstincts20-Aug-09 19:20 
AnswerRe: partition in windows form Pin
Suresh Suthar20-Aug-09 20:31
professionalSuresh Suthar20-Aug-09 20:31 
GeneralRe: partition in windows form Pin
myinstincts20-Aug-09 21:48
myinstincts20-Aug-09 21:48 
GeneralRe: partition in windows form Pin
Hristo-Bojilov20-Aug-09 23:05
Hristo-Bojilov20-Aug-09 23:05 
QuestionDebugging Weirdness [SOLVED] Pin
#realJSOP20-Aug-09 9:03
professional#realJSOP20-Aug-09 9:03 
AnswerRe: Debugging Weirdness Pin
Dave Kreskowiak20-Aug-09 9:51
mveDave Kreskowiak20-Aug-09 9:51 
GeneralRe: Debugging Weirdness Pin
#realJSOP20-Aug-09 12:09
professional#realJSOP20-Aug-09 12:09 
AnswerMessage Removed Pin
20-Aug-09 10:18
professionalN_tro_P20-Aug-09 10:18 
GeneralRe: Debugging Weirdness Pin
#realJSOP20-Aug-09 12:11
professional#realJSOP20-Aug-09 12:11 
QuestionCustomizing the Winfom WebBrowser control Pin
astibich219-Aug-09 18:08
astibich219-Aug-09 18:08 

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.