"Error reflecting type" message in custom class.
- From: gwolinsky@xxxxxxxxxxxxxxxx
- Date: 8 Aug 2005 06:19:33 -0700
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
.
- Prev by Date: RE: componentmodel: saving enum type to app.config
- Next by Date: DirectoryServices.DirectoryEntry - Creating virtual directories in
- Previous by thread: .Net Remoting Channels
- Next by thread: DirectoryServices.DirectoryEntry - Creating virtual directories in
- Index(es):
Relevant Pages
|