Reputation: 61
I've created two addins, one is shared addin (for Excel, Word and Outlook) and another one is for Outlook.
They work fine on my machine (where I developed it).
Framework used: 4.0
I've created a 'setup project' throught VS2010 following steps in Deploying an Office Solution by Using Windows Installer.
When I run setup of it, shared addin runs fine. But the outlook addin does not work.
This is log of 'Event Viewer'
Event Type: Error
Event Source: VSTO 4.0
Event Category: None
Event ID: 4096
Date: 4/26/2011
Time: 7:37:52 PM
User: N/A
Computer: XXX
Description:
Customization URI: file:///C:/Program Files/XXXX/XXXX/XXXX.vsto
Exception:
***** Exception Text ******* Microsoft.VisualStudio.Tools.Applications.Deployment.FrameworkVersionMismatchException: at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.Install(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeDeploymentManager, AddInInformation& info) at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeAddInDeploymentManager, AddInInformation& info) at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeAddInDeploymentManager, Boolean showUIDuringDeployment) at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor)
***** Loaded Assemblies ******* mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3620 (GDR.050727-3600)
Microsoft.VisualStudio.Tools.Office.Runtime.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.1 built by: SP
System.AddIn Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.1 built by: SP
Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.30729.4130
System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Deployment Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
System.Security Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3613 (GDR.050727-3600)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
From what I understand, it is not even considering loading addin with framework 4.0
Can anyone tell me where I have done wrong and suggest a solution.
Thank you
Adarsh
Upvotes: 2
Views: 4837
Reputation: 61
Found solution...
After searching a while found a links to Office Solution Prerequisites for Deployment and Visual Studio Tools for Office Runtime Installation Scenarios. Installing VSTO 4.0 solved the problem.
Then got new problem ...
System.Deployment.Application.InvalidDeploymentException: Reference in the manifest does not match the identity of the downloaded assembly XXX.dll.
which got solved after signing the assembly.
Upvotes: 2