problem in referencing dll in visual studio 2003. Works fine in 2005??!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kjr11mjr
    New Member
    • Feb 2008
    • 1

    problem in referencing dll in visual studio 2003. Works fine in 2005??!!

    Hi,

    I am having trouble referencing a dll in visual studio 2003. where as that same dll is easily refrenced on 2005. the error msg is:
    "A reference to **********.dll could not be added. It is not a valid assembly or COM component. Only assemblies with extension dll or COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component"

    the assembly is valid, since it works well with VS2005. it is accessible. i have changed its location a couple of times and still doesnt work with VS2003, but at the same time works with VS2005.

    the dll created USED to work with VS2003, but i had the whole product converted from VS2003 to VS2005. and then re-built the whole project, and now refrencing the newly created dll (VS2005 version) is not refrencing in VS2003 environment.

    So in simple words: how do you reference a dll that was made on VS2005, on VS2003?

    needless to say..URGENTTTT
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Originally posted by kjr11mjr
    Hi,

    I am having trouble referencing a dll in visual studio 2003. where as that same dll is easily refrenced on 2005. the error msg is:
    "A reference to **********.dll could not be added. It is not a valid assembly or COM component. Only assemblies with extension dll or COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or COM component"

    the assembly is valid, since it works well with VS2005. it is accessible. i have changed its location a couple of times and still doesnt work with VS2003, but at the same time works with VS2005.

    the dll created USED to work with VS2003, but i had the whole product converted from VS2003 to VS2005. and then re-built the whole project, and now refrencing the newly created dll (VS2005 version) is not refrencing in VS2003 environment.

    So in simple words: how do you reference a dll that was made on VS2005, on VS2003?

    needless to say..URGENTTTT
    In programming forwards compatability is nearly always easier than backwards. Since you converted the dll you may have two options. The first is to use the backup copy, point for next time. The second is converting backwards which is easier if there are config files associated with the dll. For example, the web.config has a legacy reference inserted. HTH.

    Comment

    Working...