Denis Pitcher

I'm trying this again.

I've successfully created an Excel App-Level addin that supports automatic updating (details below).  The issue is that I want to ensure that the addin loads from the local copy when the remote copy is unavailable.

My app.dll.manifest file is as follows:

 

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" manifestVersion="1.0">

<assemblyIdentity name="PriceTools.dll" version="1.0.0.18" />

<asmv2:entryPoint name="Startup" dependencyName="dependency0">

<asmv2:clrClassInvocation class="ClassName.AppName" />

</asmv2:entryPoint>

<asmv2:dependency asmv2:name="dependency0">

<asmv2:dependentAssembly>

<assemblyIdentity name="AppName" version="1.0.0.0" publicKeyToken="205848d03db232df" />

</asmv2:dependentAssembly>

<asmv2:installFrom codebase="AppName_1.0.0.18\AppName.dll" />

</asmv2:dependency>

<asmv2:installFrom codebase="file://servershare/scratch/denis/publish/AppName.application" />

</assembly>

The line in red is one that I added to cause the application to check for updates from the fileshare.  This works correctly as I've setup all necessary cas policies.

When I make that fileshare unavailable however, the application fails with the following error

 

Failed to update customization from the specified deployment manifest.


************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.UpdateFailedException: Failed to update customization from the specified deployment manifest. ---> System.Net.WebException: Could not find a part of the path '\\servershare\scratch\denis\publish\AppName.application'. ---> System.Net.WebException: Could not find a part of the path '\\servershare\scratch\denis\publish\AppName.application'. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '\\servershare\scratch\denis\publish\AppName.application'

... etc.

Does anyone have any recommendations of what I am doing wrong with regards to the manifest file of how I'd change it to load the local copy in the event that there is an error with the connection

Your assistance, thoughts and input is greatly appreciated,

Denis

 

 


Ok, so I'm trying to create an Excel App-Level addin that supports automatic updating.

I've discovered a means through which to utilize both Setup project deployment as well as click-once publishing to achieve initial setup and automatic updating.  Unfotunately, after all this I've encountered another issue that I'm hoping someone can help with.

Before I begin, I'm using VSTO 2005 with Office 2003

1. Followed Mads' post on how to create an installerclass to take care of CAS policy settings.  http://weblogs.asp.net/mnissen/articles/427490.aspx

2. There's a great rundown of essentially what I did to create a setup project and then publish using clickonce:  http://www.codeproject.com/useritems/Outlook_Add-in.asp

3.  In order to get around an issue with manifest files not being updated and thus causing my addin to not update, I followed these further instructions (step 5) http://www.codeproject.com/useritems/Outlook_Add-in_Issues.asp

4.  Because I am publishing to a network share, I also ensured that I had set CasPol to fully trust the share

http://blogs.msdn.com/shawnfa/archive/2004/12/30/344554.aspx

So, after all this, I've successfully achieved an app-level add-in that automatically updates when I publish new files.

The issue I've encountered now, however, is that I decided I'd try to test the scenario of when the user is working offsite and the network share is inaccessable.  When trying to load excel, I get the following error message:

"failed to update customization from the specified deployment manifest"

Essentially this is little more then a connection failed issue, however, as soon as excel realizes an add-in has encountered any error, it disables it which is a real pain.  I had hoped it would automatically load the local copy instead, so how would I achieve this in the event that the network share is unavailable

My assumption is that this can be done through custom configuration of the manifest file, however I havn't a clue where to start to begin this trek and thought I'd touch base with the community to see if anyone has any suggestions.

Thanks for your help,

Denis




Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

Denis BDA

Does anyone know the event model for the VSTO runtime I'm wondering how it makes it's calls and if there is any way I could override the update to catch the exception and force it to reload with different parameters. That might be way over the time I have left to invest in this project but I figured I'd throw it out there anyway if anyone has any suggestions




Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

Denis BDA

Ok, so I'm thinking further about this.

It does not make sense why there is not some sort of manifest setting to force the add-in to load the local assemblies in the event that the connection to the update server is unavailable.

I'd greatly appreciate if anyone has any thoughts as to how to achieve this.

The only other solution I can think of is to create a secondary windows service that checks to see whether or not there is an update available for the addin. If there is an update, it should modify the manifest file to point to the update server, if not, it will modify it to point to the local assmeblies. This could be improved by adding a check within the add-in to see if there are new versions available prior to loading.






Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

jalekz

Are you using Office 2003 or Office 2007.

Im trying to create an Add In for Word 2007 ,
but I cant use the publish to keep updated the Add In.






Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

Denis BDA

I'm using 2003 though I would suspect that 2007 has similar issues.

can you describe your issue more

Have you correctly set the code access security policies






Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

jalekz

The problem is the update,

The add In, never gets the latest dll and manifest files/

Im getting 2 warnings when I publish the add in:

1)

Warning 1 Unable to find dependency 'MICROSOFT.OFFICE.INTEROP.SMARTTAG' (Signature='71E9BCE111E9429C' Version='11.0.0.0') of assembly 'Microsoft.Office.Tools.Common.dll' C:\Documents and Settings\jalekz\My Documents\Visual Studio 2005\Projects\WordAddInDeploy001\WordAddInDeploy001Setup\WordAddInDeploy001Setup WordAddInDeploy001Setup

2)

Warning 2 Could not download 'WordAddInDeploy001_1.0.0.2/WordAddInDeploy001.dll' from http://server/WordAddInDeploy001/.

I guess the second warning, is breaking the process of update,
Do i need to configure something extra in iss website

Thanks.






Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

jalekz

My issue was for permissions.

I published the add-in to a shared folder in a server instead a Web Server site and it works perfectly.
The add in is updated in all client machines.

I still havent found the rigth configuration to publish the add-in to a website.






Re: Visual Studio Tools for Office Failed to update customization from the specified deployment manifest.

Denis BDA

Ultimately the only way I was able to get around this was create a secondary application that is loaded from the first instance of excel that kills the excel process, reads the manifest file, copies the updated files from the publish directory and restarts excel.

Hopefully MS can figure this out for their next release of VSTO as it is pretty nice to have a fully updating app that is deployed via a setup project though it took 100x more work then it should have