Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Intermittent: Multiple custom attributes of the same type found.

Intermittent: Multiple custom attributes of the same type found.

Scheduled Pinned Locked Moved Visual Basic
csharphelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cnurse
    wrote on last edited by
    #1

    I have a mixed VB/C# solution. I have a class in VB which inherits from a C# base class. The derived VB class has an attribute applied to it which the constructor of the C# base class reads. However, when I build my code (I think incrementally) and run I get "Multiple custom attributes of the same type found." when I execute... DataDatabase lDatabaseAttr = (DataDatabase)Attribute.GetCustomAttribute(GetType(), typeof(DataDatabase), false); There is only one instance of this attribute, AFAIK. If I do a full rebuild of the solution the problem goes away, only to return when I next do a build incrementally. Suffice to say I have climbed the wall several times and now look to you guys for expert guidance on where I have gone wrong. Thanks in advance. Nursey

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups