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. C#
  4. reffering C#.net proj dll(2.0) in to new vb.net proj made in 1.1 using vs studio2003 [modified]

reffering C#.net proj dll(2.0) in to new vb.net proj made in 1.1 using vs studio2003 [modified]

Scheduled Pinned Locked Moved C#
csharpvisual-studiohelpcom
2 Posts 2 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.
  • A Offline
    A Offline
    Ankit Aneja
    wrote on last edited by
    #1

    HI ALL, I am trying to use a dll made in C#.net(using framework 2.0) in to vb.net proj in framework 1.1 visual studio 2003 WHen I am trying to do add reference i am getting below error "ADd reference to dll could not be added.This is not a valid assembly or COM component.ONly assemblies with extension 'dll' and COM components can be referenced.Please make sure that file is accessible,and that is valid assembly or COM component. BUt when trying to add reference it in vs2005 proj in C#.net its successfully added. ANy help will be greatly appreciated.

    Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

    modified on Tuesday, July 20, 2010 9:34 AM

    D 1 Reply Last reply
    0
    • A Ankit Aneja

      HI ALL, I am trying to use a dll made in C#.net(using framework 2.0) in to vb.net proj in framework 1.1 visual studio 2003 WHen I am trying to do add reference i am getting below error "ADd reference to dll could not be added.This is not a valid assembly or COM component.ONly assemblies with extension 'dll' and COM components can be referenced.Please make sure that file is accessible,and that is valid assembly or COM component. BUt when trying to add reference it in vs2005 proj in C#.net its successfully added. ANy help will be greatly appreciated.

      Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

      modified on Tuesday, July 20, 2010 9:34 AM

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You cannot use a 2.0 compiled .DLL in a 1.1 project. With those versions of the .NET Framework, you cannot load two different versions of the .NET CLR in the same process at the same time, like you're trying to do. If you cannot recompile the 2.0 .DLL under 1.1 because you used stuff that isn't available in 1.1, you have no choice but to upgrade your 2003 project to Visual Studio 2005, or higher, and write in under .NET 2.0, or higher.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      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