Manifest XML signature is not valid Error in Windows 7 VSTO - c#

I have a Word VSTO application (.net 4.6.1) that I am installing via an InstalShield installer. It works fine on all the computers I've tested it on so far, but one particular computer is having problems trusting the vsto. It installs with no issues, but when run, the customization aren't there and we get an error in the event viewer saying
"the manifest may not be valid or the file could not be opened"
I've researched this and all the answers seemed to point to it being an issue with .NET 4.0 not trusting SHA256. However, the computer have the problem is a Windows 7 computer, with .NET 4.6.1 installed. I even installed 4.7.1 and still get the issue.
Are there any other reasons for this error that I can look at? I am using Visual Studio 2013 with InstallShield to create the build and sign the assembly with a third party certificate. I've actually tried signing it in SHA1 with a test certificate created from visual studio and it still gives the error.

I figured out the solution. We had to install the Visual Studio 2010 Tools for Office Runtime on the computer with the issue. After that the vsto worked. worked.

Related

apache Ignite nunit tests failed to run on build agent: Failed to load jvm.dll [duplicate]

So I have Apache Ignite.NET all configured. And I got it working with a JDK installed etc..
I now have an interesting problem. I deployed my application on a server and I keep getting this error:
System.TypeInitializationException: The type initializer for 'Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils' threw an exception. ---> Apache.Ignite.Core.Common.IgniteException: Failed to load ignite.jni.dll from C:\Windows\TEMP\Ignite_rqjux5at.wm5\ignite.jni.dll: [DLL could not be loaded (126: ERROR_MOD_NOT_FOUND). This can be caused by missing dependencies. Make sure that Microsoft Visual C++ 2010 Redistributable Package is installed (https://www.microsoft.com/en-us/download/details.aspx?id=14632).]
I do have Microsoft Visual C++ 2013 Redistributable Package installed on that server and a JRE 1.8
I wonder if anyone has seen this before.
I checked the documentation here: https://apacheignite-net.readme.io/v2.0/docs/troubleshooting
And it says make sure Microsoft Visual C++ 2010 Redistributable Package is installed. I wonder is 2013 too new for it? Or is there some other issue that I might not be realizing?
First of all, I think that you should install the exact MSVC package version since those aren't forward or backward compatible usually.
Second, it's kind of weird that your .dll path includes \\Windows\\TEMP\\. Properly deployed applications don't usually do that.
Third, there exist an issue https://issues.apache.org/jira/browse/IGNITE-5730 but it doesn't strike immediately as the one you're having.
Later versions of the c++ redistributable did not work for me, so can be a bit of a rabbit hole. In the end, I installed Microsoft Visual C++ 2010 Redistributable Package (x64)

Excel Addin does not compile properly on different machines

I have a very old Visual Studio Excel AddIn project.
When I compile it on my machine on VS2013 (.Net 4.0) and Office 2010 it works perfectly on the other machines. But when I compile it on TFS machine (no Office, only the vsto_redist.exe) it does not work - it does not load.
I've tried to switch on the VSTO_LOGALERTS and VSTO_SUPPRESSDISPLAYALERTS but this did not show any errors.
I've also tried to add a Microsoft.Office.Interop.Excel.dll to the project it still does not worked.
Any help on how I can see the problem will be helpful.
You need to install at lest the Excel developer tools that cinder in the box with office.

InfoPath cannot start Microsoft Visual Studio Tools for Application

when i hit alt+shift+F12 in InfoPath (which should open VSTA), i get the following error:
Obviously no helpful information (thanks Microsoft.
I have installed MSXML and .NET 2.0 as according to: source
If your computer does have the Microsoft .NET Framework 2.0 and Microsoft Core XML Services 6.0 installed before installing Microsoft Office InfoPath 2007, InfoPath uses the Microsoft Visual Studio Tools for Applications (VSTA)
i double-checked the installations aswell: Source
.NET 2.0 in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
and when i run msxml6.msi the wizard instantly shows:
i tried several reinstalls of all those features:
(sorry for the screenshot beeing in german but i rly didn't get the installation wizard to change it's language, i tried everything.)
interestingly i can start vsta.exe standalone. But InfoPath cannot create a C# Project for VSTA.
now has anyone a good idea how i can get either better error information (i tried event viewer allready, didn't find anything useful) or solve the problem?
thanks in advance! phil
Turns out that it depends on your Version of Visual Studio installed.
i uninstalled MS Visual Studio Express for Web and installed VS Professional. It's perfectly working now. At least Microsoft could specify this somewhere -.-

Microsoft.Office.Interop error even after installing PIAs

We have a large project which builds fine on several machines. I am in the process of installing a development system on a new machine and have a problem building because the Microsoft.Office.Interop namespace is missing.
I have Office 2010 installed and have installed the PIAs. I have removed/re-added the Office references in the project - they still seem to have the yellow triangle.
Still no luck.
Could there be anything I haven't tried yet?
Sounds like you're doing something wrong while adding the reference. You could see to these similar threads if they are of help:
https://stackoverflow.com/a/16054365/1493524
PIA's Installed but still receiving interop error
Adding Office 2010 Interop (PIA) in Visual Studio 2012

Outlook Addin Error: Not loaded. A runtime error occurred during loading of COM add-in

I have created an VSTO Outlook addin. The configuration is as follows:
Visual Studio 2008
Office 2007 Outlook add in (3.5 Framework)
MSI created using Visual Studio Setup Project
Deployed to Office 2010 under windows 7
It works fine on the Dev PC however it fails to load once installed on the test machine. The outlook addin window shows a "Not loaded. A runtime error occurred during loading of COM add-in"
It is my understanding that I should not need to install any PIA as the Office 2007 PIA are part of Office 2010.
So far I have tried the following:
set VSTO_SUPPRESSDISPLAYALERTS however it does not show any messages when it tries to start.
configured Fuslogvw.exe (Assembly Binding Log Viewer) however it is not showing any binding errors.
set VTSO_LOGALERTS and it is logging all alerts however as none are shown this has not helped.
Is there anything I am doing wrong or need to do in addition to make this work?
Make sure you have the VSTO 3.0 Runtime installed on the test machine.
You will also need to install the VSTO 3.0 Runtime Service Pack 1 if you are running Visual Studio 2008 Service Pack 1.
VSTO 4.0 Runtime is not required in your situation because it is used with add-ins created with Visual Studio 2010. Please note that the version of VSTO and runtime generally must agree with the version of Visual Studio used to create the add-in.
ere are a couple of usefull sites (I'm not going to copy and paste their advice on troubleshooting)
http://www.ceptara.com/node/183
http://blogs.msdn.com/b/vsod/archive/2008/04/22/troubleshooting-com-add-in-load-failures.aspx

Categories

Resources