"Error reflecting type" message in custom class.



I have written a class library that will be consumed by a Windows
application. Within this library are several classes that all have a
public enumeration called "ReferenceIDType". The types within this
enum vary from class to class, but the enum is used for the same
purpose throughout these classes.

We are NOT serializing these and they will not be used from a web
service.

When I compile this class along with the rest of my solution in debug
mode for testing, this class library compiles without error and runs
just fine.

However, when I attempt to compile this one class into it's dll in
release mode, I get the following error:

Error: There was an error reflecting type
'MMIT.Applications.GUS.Common.Comment.ReferenceIDType'.
- Types 'MMIT.Applications.GUS.Common.Comment.ReferenceIDType' and
'MMIT.Applications.GUS.Common.Address.ReferenceIDType' both use the XML
type name, 'ReferenceIDType', from namespace ''. Use XML attributes to
specify a unique XML name and/or namespace for the type.

We have added no XML attributes and are not serializing this stuff.
Also, there are MANY other classes in the this library that use the
same enum but without problem.

Does anyone have any suggestions for this newbie? Any help would be
greatly appreciated.

Sincerely,
Glen Wolinsky

.



Relevant Pages

  • Re: Nervous Nuby Starting Out!
    ... i use because my boyfriend pointed out that XML works well as a Better ... try to compile and install Gems so I can have a go at using the ... at Ruby In The First Place is to take a step back and learn from the ... future if I keep learning Applescript as self-taught with nobody to talk to. ...
    (comp.lang.ruby)
  • Re: XML-based object orientated pre-Assembler
    ... > I have been promising an object orientated ASM IDE for a while now. ... > that will parse XML code and output ASM files. ... > compile and viola, the code is ported. ... "Why would someone use this product over other assemblers?" ...
    (alt.lang.asm)
  • Re: XMLReader skip current element
    ... You should try Eclipse some time - it will compile (in some cases, ... Likewise, just how handy would it be to just skip over an invalid section of XML, when you have no idea what the overall effect of doing so would be? ... It does seem to me that in an editor, where the user is actively modifying the data, it makes more sense to put the effort in, but even there I wouldn't necessarily insist on it. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XMLReader skip current element
    ... You should try Eclipse some time - it will compile (in some cases, ... just how handy would it be to just skip over an invalid ... Just because the remaining XML can be parsed, ... should try to recover. ...
    (microsoft.public.dotnet.languages.csharp)
  • show/hide the XML Serialization of a public property of enumerated type
    ... I have the following ENUM ... Public Property Name As String ... properties that are not set not to appear in the output XML. ... How to make Unset Enum Type properties not appear in XML Serialization. ...
    (microsoft.public.dotnet.languages.vb)