Assembly missing in GAC after Publish?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pieter

    Assembly missing in GAC after Publish?

    Hi,

    We're using ClickOnce alreaddy more than a year for a given applicaiton,
    doing more than 50 publishes without any problem.

    Yesterday we made a minor change to one of our components (let's say with
    the name MyAssembly), and incremented it's version (AssemblyVersio n: from
    0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users
    know want to run the application they get this error:
    "Unable to install or run the application. The application requires that
    assembly MyAssembly Version 0.1.7.0
    be installed in the Global Assembly Cache (GAC) first."


    This is so weird, especially when knowing we had alreaddy inremented this
    version number without any problems in the past.

    Anybody has any idea? Your help will be really appreciated!


    Thanks a lot in advance,


    Pieter


  • Pieter

    #2
    Re: Assembly missing in GAC after Publish?

    Aaargh never mind, I've found it:
    What was actually happening was soem type of dll hell :-)
    Another component in the project was referencing the same assembly, but did
    it with a compiled version, not the source of the project. so when doing the
    publish there was some conflict between the old one and the new one...

    This conflict should be more visible in the output window when doing a build
    :-)

    "Pieter" <pieterNOSPAMco ucke@hotmail.co mwrote in message
    news:%23%233wfc F0IHA.3968@TK2M SFTNGP04.phx.gb l...
    Hi,
    >
    We're using ClickOnce alreaddy more than a year for a given applicaiton,
    doing more than 50 publishes without any problem.
    >
    Yesterday we made a minor change to one of our components (let's say with
    the name MyAssembly), and incremented it's version (AssemblyVersio n: from
    0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users
    know want to run the application they get this error:
    "Unable to install or run the application. The application requires that
    assembly MyAssembly Version 0.1.7.0
    be installed in the Global Assembly Cache (GAC) first."
    >
    >
    This is so weird, especially when knowing we had alreaddy inremented this
    version number without any problems in the past.
    >
    Anybody has any idea? Your help will be really appreciated!
    >
    >
    Thanks a lot in advance,
    >
    >
    Pieter
    >
    >

    Comment

    • kimiraikkonen

      #3
      Re: Assembly missing in GAC after Publish?

      On Jun 17, 12:15 pm, "Pieter" <pieterNOSPAMco u...@hotmail.co mwrote:
      Aaargh never mind, I've found it:
      What was actually happening was soem type of dll hell :-)
      Another component in the project was referencing the same assembly, but did
      it with a compiled version, not the source of the project. so when doing the
      publish there was some conflict between the old one and the new one...
      >
      This conflict should be more visible in the output window when doing a build
      :-)
      >
      "Pieter" <pieterNOSPAMco u...@hotmail.co mwrote in message
      >
      news:%23%233wfc F0IHA.3968@TK2M SFTNGP04.phx.gb l...
      >
      >
      >
      Hi,
      >
      We're using ClickOnce alreaddy more than a year for a given applicaiton,
      doing more than 50 publishes without any problem.
      >
      Yesterday we made a minor change to one of our components (let's say with
      the name MyAssembly), and incremented it's version (AssemblyVersio n: from
      0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users
      know want to run the application they get this error:
      "Unable to install or run the application. The application requires that
      assembly MyAssembly Version 0.1.7.0
      be installed in the Global Assembly Cache (GAC) first."
      >
      This is so weird, especially when knowing we had alreaddy inremented this
      version number without any problems in the past.
      >
      Anybody has any idea? Your help will be really appreciated!
      >
      Thanks a lot in advance,
      >
      Pieter- Hide quoted text -
      >
      - Show quoted text -
      Hi,
      If you need to play with GAC manually, you can also refer to this
      article:


      Thanks,

      Onur Güzel

      Comment

      • Rich P

        #4
        Re: Assembly missing in GAC after Publish?

        Hi Pieter,

        I have been using Click Once for nearly 3 years (since beta) without any
        problems. When I make a change to an application and publish this
        change - I increment the project in 3 places: in the Application tab of
        Project properties I click on the Assemly Information button where I
        increment the assembly version number and the file version number. Then
        - in the Publish tab I increment the numbers that I have been tracking
        (for me it has only been the revision number. So in all 3 locations all
        the numbers match. This may not be the intended way, but I have not had
        any problems doing it this way.

        Another thing you can do is to go to the server to the directory where
        all assemblies for your application get published and delete these
        subdirectories and all their contents and then start the publishing
        process all over again. The only thing is that you will have to
        uninstall your application from all workstations using it first so that
        they will get the new assembly.

        Rich

        *** Sent via Developersdex http://www.developersdex.com ***

        Comment

        • Nick

          #5
          Re: Assembly missing in GAC after Publish?

          Hi Rich,

          Changing version numbers manually like that would definitely solve that
          problem, but is much better being done automatically as it removes human
          error from the equation, i.e. forgetting to update version numbers, it's a
          gripe of mine.

          I use automatic version numbers by using the wild card char...

          Assembly Version,

          [1] [0][*] [ ]

          Then I only need to change major / minor as necessary, so it can be
          ignored for quick changes. But then VS isn't so reliable with keeping
          everything uptodate in my experience anyway :(

          Nick.

          "Rich P" <rpng123@aol.co mwrote in message
          news:ebt4azI0IH A.4912@TK2MSFTN GP03.phx.gbl...
          Hi Pieter,
          >
          I have been using Click Once for nearly 3 years (since beta) without any
          problems. When I make a change to an application and publish this
          change - I increment the project in 3 places: in the Application tab of
          Project properties I click on the Assemly Information button where I
          increment the assembly version number and the file version number. Then
          - in the Publish tab I increment the numbers that I have been tracking
          (for me it has only been the revision number. So in all 3 locations all
          the numbers match. This may not be the intended way, but I have not had
          any problems doing it this way.
          >
          Another thing you can do is to go to the server to the directory where
          all assemblies for your application get published and delete these
          subdirectories and all their contents and then start the publishing
          process all over again. The only thing is that you will have to
          uninstall your application from all workstations using it first so that
          they will get the new assembly.
          >
          Rich
          >
          *** Sent via Developersdex http://www.developersdex.com ***

          Comment

          Working...