Visual Studio 2005 - "Unable to install or run the application"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bogorman
    New Member
    • Aug 2007
    • 7

    Visual Studio 2005 - "Unable to install or run the application"

    Am a newcomer to Visual Studio 2005 but have managed to develop a simple application in VB using it. I want to deploy it.
    Have tried using ClickOnce which generates the webpage ok. I can install the application on my computer and also one one other computer by clicking the Install button. However, on another computer I get the error:

    (firstly) Cannot download the application. The application is missing required files.
    (then) Unable to install or run the application. The application requires the assembly office version 11.0.0.0 to be installed in the GAC.

    Would be most grateful if anyone can suggest how I can solve this.
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    The error which u got shows u had used office web component in your application. And during the deployment package creation, u had missed that office assembly to add with ur deployment package.

    Add that referance assembly and all will be fine.

    Comment

    • bogorman
      New Member
      • Aug 2007
      • 7

      #3
      Hi,
      I have references to Office 11.0 Object Library and Word 11.0 Object Library
      Assumed that "app requires the assembly office version 11.0.0.0" refers to one of these.
      Should I include a reference to another Library?
      Brian

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        You might need Office installed on the computer in order to install your software that uses one of it's DLLs. Not sure if that helps, just thinking is all.

        Comment

        • bogorman
          New Member
          • Aug 2007
          • 7

          #5
          Hi,
          Office is installed on all computers. The only difference is that my machine on which I developed the program has Office 2003 Pro and the one on which I get the error has Office 2003 SBE
          Brian

          Comment

          • bogorman
            New Member
            • Aug 2007
            • 7

            #6
            Hi Folks,
            Think I may have discovered the solution.
            If you change the Publish Status in Application Files (button on the Publish tab) to include, all the required dll's are published to the same folder as the application.
            This seems to work. Is there any disadvantage in doing this?
            It has taken me AGES to find this!!! But possibly I may be wrong?
            Regards
            Brian

            Comment

            Working...