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. Trying to use old assembly version?

Trying to use old assembly version?

Scheduled Pinned Locked Moved C#
announcementquestion
3 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.
  • E Offline
    E Offline
    eggsovereasy
    wrote on last edited by
    #1

    I have an application where I incremented the version on one of the projects now when I try and run it I get an Invalid Caste exception when I try to cast an object to a class that it is (specifically I have a class that implements an interface and I'm trying to cast it to that interface). I get the little message that pops up warning me that some assembly was compiled in release mode so I won't have debugging or some such. This pop up lists the assembly as 1.0.0.0 when I have set the assembly to 1.1.0.0. Why won't it use the new version? I have already removed all references and readded them in all projects that are dependent on this assembly.

    L 1 Reply Last reply
    0
    • E eggsovereasy

      I have an application where I incremented the version on one of the projects now when I try and run it I get an Invalid Caste exception when I try to cast an object to a class that it is (specifically I have a class that implements an interface and I'm trying to cast it to that interface). I get the little message that pops up warning me that some assembly was compiled in release mode so I won't have debugging or some such. This pop up lists the assembly as 1.0.0.0 when I have set the assembly to 1.1.0.0. Why won't it use the new version? I have already removed all references and readded them in all projects that are dependent on this assembly.

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Here is what they do in the Web.config to rebind the MS AJAX stuff, it should work the same for Castle if the assebmliesare compatible. xacc.ide - now with TabsToSpaces supportIronScheme - 1.0 alpha 4a out now (29 May 2008)

      E 1 Reply Last reply
      0
      • L leppie

        Here is what they do in the Web.config to rebind the MS AJAX stuff, it should work the same for Castle if the assebmliesare compatible. xacc.ide - now with TabsToSpaces supportIronScheme - 1.0 alpha 4a out now (29 May 2008)

        E Offline
        E Offline
        eggsovereasy
        wrote on last edited by
        #3

        Thanks for the suggestion, I actually just figured it out. There is an XML file that lists all a bunch of types for this Query Builder tool we have and in this XML file it specifies the version, so all I had to do was update the version number in this file and it started working fine.

        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