Click here to Skip to main content
15,903,388 members
Home / Discussions / C#
   

C#

 
AnswerRe: Installer Issues Pin
Jimmanuel11-Jun-08 6:07
Jimmanuel11-Jun-08 6:07 
AnswerRe: Installer Issues Pin
Big Daddy Farang11-Jun-08 12:38
Big Daddy Farang11-Jun-08 12:38 
GeneralRe: Installer Issues Pin
Russell Jones11-Jun-08 23:13
Russell Jones11-Jun-08 23:13 
GeneralRe: Installer Issues Pin
Big Daddy Farang12-Jun-08 5:27
Big Daddy Farang12-Jun-08 5:27 
Questionhow to set body color,font size,font name in codebehind Pin
senpriya11-Jun-08 5:42
senpriya11-Jun-08 5:42 
AnswerRe: how to set body color,font size,font name in codebehind Pin
Christian Graus11-Jun-08 5:58
protectorChristian Graus11-Jun-08 5:58 
AnswerRe: how to set body color,font size,font name in codebehind Pin
leppie11-Jun-08 6:00
leppie11-Jun-08 6:00 
QuestionError creating XmlSerializer Pin
Eric Burns11-Jun-08 5:39
Eric Burns11-Jun-08 5:39 
I am creating a serializer for a class that has an array of type Base, but with objects that are actually of type SubClass1, SubClass2, etc. So, that the serializer knows about these subclasses, I load the dll that contains them, extract them into an array and pass them into the XmlSerializer constructor like so:

s = new XmlSerializer( m_ObjToSerialize.GetType(), extraTypes );

Note that the m_ObjToSerialize type is defined in that same dll.

When the constructor is called, it throws the exception:

Unable to generate a temporary class (result=1).
error CS1704: An assembly with the same simple name 'AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of the references or sign them to enable side-by-side.

As far as I can figure, when the constructor tries to create the temporary class, it loads the dll again . . . why? When I do the same operation with a different dll (with the object and types coming from the same dll), it works. Anybody have any idea what could be causing the difference?
AnswerRe: Error creating XmlSerializer Pin
leppie11-Jun-08 5:55
leppie11-Jun-08 5:55 
GeneralRe: Error creating XmlSerializer Pin
Eric Burns11-Jun-08 6:39
Eric Burns11-Jun-08 6:39 
QuestionNeed to Connect to DB2 database using C# Pin
Sankalp Verma11-Jun-08 5:21
Sankalp Verma11-Jun-08 5:21 
AnswerRe: Need to Connect to DB2 database using C# Pin
Christian Graus11-Jun-08 5:22
protectorChristian Graus11-Jun-08 5:22 
AnswerRe: Need to Connect to DB2 database using C# Pin
PIEBALDconsult11-Jun-08 15:43
mvePIEBALDconsult11-Jun-08 15:43 
QuestionProgramatically Modifying app.config file Pin
#realJSOP11-Jun-08 4:30
professional#realJSOP11-Jun-08 4:30 
AnswerRe: Programatically Modifying app.config file Pin
Judah Gabriel Himango11-Jun-08 4:55
sponsorJudah Gabriel Himango11-Jun-08 4:55 
GeneralRe: Programatically Modifying app.config file Pin
#realJSOP11-Jun-08 5:23
professional#realJSOP11-Jun-08 5:23 
GeneralRe: Programatically Modifying app.config file Pin
Judah Gabriel Himango11-Jun-08 5:30
sponsorJudah Gabriel Himango11-Jun-08 5:30 
AnswerRe: Programatically Modifying app.config file Pin
leppie11-Jun-08 6:02
leppie11-Jun-08 6:02 
GeneralRe: Programatically Modifying app.config file Pin
#realJSOP11-Jun-08 6:42
professional#realJSOP11-Jun-08 6:42 
QuestionReflection Pin
c242311-Jun-08 4:06
c242311-Jun-08 4:06 
AnswerRe: Reflection Pin
c242311-Jun-08 4:30
c242311-Jun-08 4:30 
AnswerRe: Reflection Pin
PIEBALDconsult11-Jun-08 15:45
mvePIEBALDconsult11-Jun-08 15:45 
GeneralRe: Reflection Pin
c242311-Jun-08 22:12
c242311-Jun-08 22:12 
QuestionRTS_CONTROL_TOGGLE or Win32 handle to the serial port Pin
aei_totten11-Jun-08 4:04
aei_totten11-Jun-08 4:04 
QuestionChatting in lan Pin
pekhaleyogesh11-Jun-08 4:00
pekhaleyogesh11-Jun-08 4:00 

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.