?
Solved

Visual Studio 2005: Error: ....Assembly Office Version 11.0.0.0 be installed in the GAC

Posted on 2007-08-07
5
Medium Priority
?
1,858 Views
Last Modified: 2013-11-26
Have created a simple application in vb using Visual Studio 2005.
Have also created a Setup project for it.
Everything works find on my pc. When I publish, a webpage is created and from this I can install the application back on my machine.
However, when a user goes to the webpage and tries to install on their machine, they get the error:

Unable to install or run the application. Application requires that Assembly Office Version 11.0.0.0 be installed in the Global Assembly Cache (GAC) first.

Details of the error are:

PLATFORM VERSION INFO
      Windows                   : 5.1.2600.131072 (Win32NT)
      Common Language Runtime       : 2.0.50727.42
      System.Deployment.dll             : 2.0.50727.42 (RTM.050727-4200)
      mscorwks.dll                   : 2.0.50727.42 (RTM.050727-4200)
      dfdll.dll                   : 2.0.50727.42 (RTM.050727-4200)
      dfshim.dll                   : 2.0.50727.42 (RTM.050727-4200)

SOURCES
      Deployment url                  : file:///C:/Documents%20and%20Settings/Owner.SAMSUNG-06P8KIH/Desktop/LIFEnetMail.application

IDENTITIES
      Deployment Identity            : LIFEnetMail.application, Version=1.0.0.3, Culture=neutral, PublicKeyToken=2ab988f10d3ee7a1, processorArchitecture=msil

APPLICATION SUMMARY
      * Installable application.

ERROR SUMMARY
      Below is a summary of the errors, details of these errors are listed later in the log.
      * Activation of C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail.application resulted in exception. Following failure messages were detected:
            + Downloading file:///C:/Documents and Settings/Owner.SAMSUNG-06P8KIH/Desktop/LIFEnetMail_1_0_0_3/LIFEnetMail.exe.manifest did not succeed.
            + Could not find a part of the path 'C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail_1_0_0_3\LIFEnetMail.exe.manifest'.
            + Could not find a part of the path 'C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail_1_0_0_3\LIFEnetMail.exe.manifest'.
            + Could not find a part of the path 'C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail_1_0_0_3\LIFEnetMail.exe.manifest'.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
      No transaction error was detected.

WARNINGS
      There were no warnings during this operation.

OPERATION PROGRESS STATUS
      * [07/08/2007 14:43:12] : Activation of C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail.application has started.
      * [07/08/2007 14:43:18] : Processing of deployment manifest has successfully completed.
      * [07/08/2007 14:43:18] : Installation of the application has started.

ERROR DETAILS
      Following errors were detected during this operation.
      * [07/08/2007 14:43:18] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
            - Downloading file:///C:/Documents and Settings/Owner.SAMSUNG-06P8KIH/Desktop/LIFEnetMail_1_0_0_3/LIFEnetMail.exe.manifest did not succeed.
            - Source: System.Deployment
            - Stack trace:
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
                  at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
                  at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
                  at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
                  at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
                  at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
                  at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState subState, ActivationDescription actDesc)
                  at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
                  at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
            --- Inner Exception ---
            System.Net.WebException
            - Could not find a part of the path 'C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail_1_0_0_3\LIFEnetMail.exe.manifest'.
            - Source: System
            - Stack trace:
                  at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
                  at System.Net.FileWebRequest.GetResponse()
                  at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
            --- Inner Exception ---
            System.Net.WebException
            - Could not find a part of the path 'C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail_1_0_0_3\LIFEnetMail.exe.manifest'.
            - Source: System
            - Stack trace:
                  at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
                  at System.Net.FileWebRequest.WrappedGetResponseCallback(Object state)
            --- Inner Exception ---
            System.IO.DirectoryNotFoundException
            - Could not find a part of the path 'C:\Documents and Settings\Owner.SAMSUNG-06P8KIH\Desktop\LIFEnetMail_1_0_0_3\LIFEnetMail.exe.manifest'.
            - Source: mscorlib
            - Stack trace:
                  at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
                  at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
                  at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
                  at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
                  at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

COMPONENT STORE TRANSACTION DETAILS
      No transaction information is available.


Would be grateful for anyone's help on this.
0
Comment
Question by:bogorman
  • 3
  • 2
5 Comments
 
LVL 7

Expert Comment

by:dctuck
ID: 19647001
Sounds like you're referencing some Microsoft Office Interop DLLs in your code that aren't actually installed on the other user's machine. To be able to use the Office DLLs, unfortunately you can't just package them with your setup file - the end user has to have that version of Office installed as well.
0
 

Author Comment

by:bogorman
ID: 19647393
Hi,
Thanks for your quick reply. Thought I could include all required DLLs in the list of Prerequisites.
On checking the list, I see that I have only included Net Framework 2.0
The application is a mailmerge program to run locally on the users machine. It communicates with Microsoft Word.
The error refers to "Office Version 11.0.0.0". I have references in my project to the Office 11.00 and the Word 11.00 Object Library. How can I tell which files are missing? Would these be the missing References?  If so, I thought I could add the corresponding files to the list of Prerequisites so they would be automatically installed on the users machine when the setup program runs.
Would be most grateful for your comments.
Brian
0
 
LVL 7

Expert Comment

by:dctuck
ID: 19648163
If you have referenced them, Visual Studio should automatically copy the DLLs, but you could try adding them to the pre-requisites, just to be sure. But the user will still need to have the same version of Office installed as the one you are referencing...
0
 

Author Comment

by:bogorman
ID: 19661879
Hi,
Think I have solved the problem.
What I did not realise is that I can install all DLLs into the project folder by changing the Publish Status in Application files to Include. If I do this, I do not need to worry about missing DLLs as all necessary ones are installed.
Everything seems to work ok. Is there any problem with doing it this way?
Brian
0
 
LVL 7

Accepted Solution

by:
dctuck earned 1500 total points
ID: 19661894
No - sounds like it should work fine :)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question