简体   繁体   中英

Clickonce Office add-in assembly reference problem upon deployment

I have developed an Office 2007 C# add-in. It uses clickonce for deployment. On systems with Office 2010 all is ok but on a machine with XP SP3, NET 3.5sp1 and Office 2007, I get a strange assembly loading error.

My add-in does not directly reference Microsoft.Office.Interop.SmartTag.dll . This gets referenced by Microsoft.Office.Tools.Commmon.v9.0.dll - which IS referenced in my add-in.

When add-in is installed with clickonce an error is reported that the Microsoft.Office.Interop.SmartTag.dll could not be found in my add-in's local install folder. Both Microsoft.Office.Tools.Commmon.v9.0.dll and Microsoft.Office.Interop.SmartTag.dll are in the GAC with correct versions.

I have used Reflector to try and detect the problem but it resolves Microsoft.Office.Interop.SmartTag.dll reference easily by finding the DLL in the GAC.

What are the possible reasons for my clickonce install to fail? The required assemblies are present but GAC is obviously not consulted.

I have found that adding |vstolocal to Manifest registry value makes everything work as expected but still I am wondering why was I getting the error in the first place.

您是否将PIA和VSTO Runtime部署为部署的先决条件?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM