Share via


Downloading file ...../desktop/xxx.vsto did not succeed

Question

Friday, April 1, 2011 8:24 PM

hi,

i am installing vsto using an setup project via a custom action.

Custom action uses VSTOINSTALLER.exe to install using the .vsto file.

if i run the Setup.exe as administrator, everything works fine, but if i ever run the setup.exe as a non administrator, the vsto gets installed, but while i open the excel sheet that i copy to the desktop, it gives this exception saying Downloading file ...../desktop/xxx.vsto did not succeed

but even if i clear everything by uninstalling and reinstalling it as admninistrator, is not resolving this issue.

any help in this regard will be indeed helpful, we are badly in need of a sure shot resolution for our PRODUCTION application.

please do treat this as priroity

thanks,

regards,

sankar

Sankar

All replies (5)

Tuesday, April 5, 2011 9:10 PM âś…Answered

Hi Sankar,

The problem is that the Office application is looking for the deployment manifest (.vsto) and application manifest (.dll.manifest) and is unable to find them. Do you see why? These manifests aren't in the target machine. They should be in the Desktop folder.

I find a bit odd the structure of your setup program for the following reasons:

1. All those DLLs (Microsoft.VisualStudio.Tools ...) shouldn't be in the application folder. They are or should be prerequisites. If they are already installed, you're installing an extra copy that it's not necessary. As far as I know they are installed in the GAC because they are shared assemblies.

2. Use of the Desktop folder as installation directory. While it's OK to use the desktop, I think it'd be better if the primary output of your VSTO solution and the manifests were in the application folder. The manifests aren't part of the primary output. You must add them individually from the release folder.

Here's a good article about using Windows Installer with Office 2010. Here are the versions for Office 2003 and Office 2007.

Also note that if you don't use the ServerDocument class to specify where the VSTO solution is, your document-level customizations will always look for the DLLs in the folder where they are. In your example, they will look for these files in the Desktop folder.

Kind regards,

Carlos Mallen


Monday, April 4, 2011 3:53 AM

Hello Sankar,

Thanks for posting. I read your post carefully, but I think your question is unclear for me so that currently I cannot give much helpful information on this. To provide further assistance, would you mind clarifying some points?

  • What's kind of this VSTO project? document-level solution or an add-in?
  • What the deployment ways you are choosing? Windows Installer and ClickOnce? From what you side, I think it is using Windows installer? right?
  • What application and version you are working with? Excel 2007 or Word 2007?
  • Do this issue only happens when running the Setup.exe as a non administrator? For this point, I think you could do more test on your side?
  • Would you please tell me the full error message? So I could try to research it.

Here are some threads about similar topic which might give you some useful information.

Problem deploying VSTO Word Add-in:
http://social.msdn.microsoft.com/Forums/en/vsto/thread/1a033403-89ca-4cda-8b8f-c3a63a9c01ae.

VSTO / ClickOnce Questions:
http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/91f487c1-d8dc-4eea-9900-0fe1d1e258b1.

I am looking forward to your reply. Have a nice day.

Bessie Zhao [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Monday, April 4, 2011 7:25 PM

hi Bessie,

here are the details

  • Document level solution (Excel Customization)
  • Create Clickonce publish bits for 3 VSTO project we have, then invoke each of these from a single Windows Installer. (windows installer uses custom action which uses vstoinstaller.exe with /i flag invoking the individual .vsto files from the published location)
  • We are using Office 2010 RTM
  • Yes, it happens only if we run as a non administrator, but once that happens, we are not able to get out of it even though if we run in as administrator again after clearing previous installs. I have done all things that i can do at my end, it clearly works if we run it as administrator for the first time and then works on for ever until you run it as non administrator
  • The full error message with Details are

System.Deployment.Application.DeploymentDownloadException: Downloading did not succeed. > System.Net.WebException: Could not find file 'C:\Users\savenk\Desktop\ForecastDataEntry.vsto'. > System.Net.WebException: Could not find file 'C:\Users\savenk\Desktop\ForecastDataEntry.vsto'. > System.IO.FileNotFoundException: Could not find file 'C:\Users\savenk\Desktop\ForecastDataEntry.vsto'.

  • File name: 'C:\Users\savenk\Desktop\ForecastDataEntry.vsto'

      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, FileOptions options, String msgPath, Boolean bFromProxy)

       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)

       End of inner exception stack trace

       at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)

       at System.Net.FileWebRequest.GetResponseCallback(Object state)

       End of inner exception stack trace

       at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)

       at System.Net.FileWebRequest.GetResponse()

       at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

       End of inner exception stack trace

       at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)

       at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

 

Hope that helps

 

thanks,

regards,

Sankar

Sankar


Tuesday, April 5, 2011 12:02 AM

Hi,

You are using Windows Installer. Aren't you? How does the 'File System' part of your setup program looks like? What files do you have in the application folder and desktop?

Kind regards,

Carlos Mallen


Tuesday, April 5, 2011 6:00 PM

  1. Yes i am using Visual Studio Installer
  2. Application Folder has

                  Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0.dll

Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0.dll

Microsoft.VisualStudio.Tools.Applications.Runtime..V9.0.dll

Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll

Microsoft.VisualStudio.Tools.Office.Runtine.v10.0.dll

Primary Output from CustomInstallAction1

Primary Output from CustomInstallAction2

Primary Output from CustomInstallAction3

USERS DESKTOP FOLDER CONTAINS

Excel File 1

Excel File2

Excel File3

 

                                

 

 

Sankar