Click here to Skip to main content
15,925,062 members
Home / Discussions / C#
   

C#

 
Questiona security problem [modified] Pin
Sajjad Izadi10-Jun-08 10:16
Sajjad Izadi10-Jun-08 10:16 
AnswerRe: a security problem Pin
Christian Graus10-Jun-08 11:10
protectorChristian Graus10-Jun-08 11:10 
GeneralRe: a security problem Pin
Sajjad Izadi10-Jun-08 11:17
Sajjad Izadi10-Jun-08 11:17 
GeneralRe: a security problem Pin
Christian Graus10-Jun-08 11:24
protectorChristian Graus10-Jun-08 11:24 
Question[Message Deleted] Pin
Sr...Frank10-Jun-08 10:13
Sr...Frank10-Jun-08 10:13 
AnswerRe: AutoComplete Combobox!!! Pin
teejayem10-Jun-08 10:18
teejayem10-Jun-08 10:18 
QuestionHow to create a new ASPNETDB database? Pin
allende10-Jun-08 9:02
allende10-Jun-08 9:02 
QuestionXml serialization exception [modified] Pin
Eric Burns10-Jun-08 8:33
Eric Burns10-Jun-08 8:33 
I have a class SubClass that inherits from class Base.

I have an array of type Base that I want to serialize. So, that the serializer knows about all the possible subclasses, I called the constructor like so:

XmlSerializer s = new XmlSerializer( ObjectType, extraTypes );

where extra types is an array of types that includes SubClass.

When I make this call to the constructor, I get the exception:

Outer exception: There was an error reflecting type 'Subclass'

Inner exception: Types 'Subclass' and 'Subclass' both use the XML type name, 'Subclass', from namespace ''. Use XML attributes to specify a unique XML name and/or namespace for the type.

There clearly aren't two classes with the same name or my code wouldn't have compiled.

Any thoughts on what my problem could be?

modified on Tuesday, June 10, 2008 3:03 PM

AnswerRe: Xml serialization exception Pin
leppie10-Jun-08 23:41
leppie10-Jun-08 23:41 
QuestionCollectionEditor Pin
Gareth H10-Jun-08 7:14
Gareth H10-Jun-08 7:14 
AnswerRe: CollectionEditor Pin
led mike10-Jun-08 9:52
led mike10-Jun-08 9:52 
GeneralRe: CollectionEditor Pin
Gareth H10-Jun-08 10:19
Gareth H10-Jun-08 10:19 
QuestionThread and ProgressBar Problem Pin
MumbleB10-Jun-08 6:09
MumbleB10-Jun-08 6:09 
AnswerRe: Thread and ProgressBar Problem Pin
Judah Gabriel Himango10-Jun-08 6:16
sponsorJudah Gabriel Himango10-Jun-08 6:16 
GeneralRe: Thread and ProgressBar Problem Pin
MumbleB10-Jun-08 6:25
MumbleB10-Jun-08 6:25 
AnswerDouble Post - Please ignore Pin
Giorgi Dalakishvili10-Jun-08 6:24
mentorGiorgi Dalakishvili10-Jun-08 6:24 
GeneralRe: Double Post - Please ignore Pin
ellllllllie10-Jun-08 6:56
ellllllllie10-Jun-08 6:56 
GeneralRe: Double Post - Please ignore Pin
ellllllllie10-Jun-08 6:56
ellllllllie10-Jun-08 6:56 
QuestionHttpWebRequest (Caching) problem? Pin
Trapper-Hell10-Jun-08 5:40
Trapper-Hell10-Jun-08 5:40 
AnswerRe: HttpWebRequest (Caching) problem? Pin
Judah Gabriel Himango10-Jun-08 6:19
sponsorJudah Gabriel Himango10-Jun-08 6:19 
GeneralRe: HttpWebRequest (Caching) problem? Pin
Trapper-Hell10-Jun-08 6:23
Trapper-Hell10-Jun-08 6:23 
QuestionUI IP control in VS 2008 .. ? Pin
Yanshof10-Jun-08 5:31
Yanshof10-Jun-08 5:31 
AnswerRe: UI IP control in VS 2008 .. ? Pin
Judah Gabriel Himango10-Jun-08 6:18
sponsorJudah Gabriel Himango10-Jun-08 6:18 
QuestionHow to use regex to fetch url's from a page??? Pin
Technobizz10-Jun-08 4:51
Technobizz10-Jun-08 4:51 
AnswerRe: How to use regex to fetch url's from a page??? PinPopular
Christian Graus10-Jun-08 5:00
protectorChristian Graus10-Jun-08 5: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.