Microsoft.Excel9.Interop Reference Error - c#

I've been tasked to work on an existing .Net 2.0 Visual Studio 2012 project which contains a reference to Microsoft.Excel9.Interop, but the reference is throwing undefined errors on my machine.
I haven't been able to find anything in my research about how to solve this error or where I can find Microsoft.Excel9.Interop dll.
Does anyone have any experience with Microsoft.Excel9.Interop that can point me in the right direction?
Thank you.

You have to install, in this order:
Microsoft Office
Visual Studio Tools for Office which installs the PIA's, this installs all the assemblies you need
Are you sure you are looking for version 9? This is for Office 2000.

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)

Cannot add Visual C++ Runtime Package reference to Windows Phone project in Visual Studio

After exporting a Unity project to Windows Phone, I am missing a reference in Visual Studio. The reference is Microsoft Visual C++ 2013 Runtime Package for Windows.
The files and dlls exist where they have to be but there I cannot add a reference to them in the reference manager because it does not exist there. Browsing and adding them directly also brings up a error saying the dll is not compatible.
Does anyone know how this reference can be fixed?
Thanks in advance
We had similar problem caused by "incorrect" version of used Visual Studio. Unity created a project for VS2015 which had reference for the newer version of the Microsoft Visual C++ 2013 Runtime Package. When we opened the project in VS 2013, a similar problem occurred. So the solution was to:
Open it in VS 2015.
Or change reference of the library to older version.
Or have more VS versions on the machine.
Hope this help

Where on Earth is csc.exe?

After reading through a few tutorials and other questions I've had no luck in getting anything called csc.exe on my computer. I tried installing MonoDevelop, Mono, the .NET SDK, none of which installed csc.exe. Where is it? Do I need Visual C# 2008 Express or something?
It is in C:\windows\Microsoft.NET\Framework\v4.0.30319\csc.exe.
Of course, the path will be different for different framework versions.
Microsoft's C# compiler's acronym. It should get installed whenever a CLI-supporting development tool is installed, such as Visual Studio.

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

Categories

Resources