Is there a PIA for Office365 and Visual Studio 2010?

0

Is there a PIA for Office365 and Visual Studio 2010? If so how do I get it? If not then what is the equivalent? There are no PIAs on my PC for Office365 or anything beyond Office 14. Context: I am migrating all my files/Folders from an old PC to a new PC. The systems involved have the following installed: Old: Windows 7(64 bit), Office 2007, Visual Studio 2010 Professional New: Windows 10 (64 bit), Office365, Visual Studio 2010 Professional

Much of my work involves Excel VBA routines calling COM enabled Class Libraries (.dll) to obtain and manipulate various data which the .dlls then return the results to Excel for display and/or other manipulations. The Class Libraries are written by me using VS2010 VB.Net. All of this works as expected on my old PC.

The first sign of my Problem is this Warning: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): warning MSB3304: Could not determine the dependencies of the COM reference "Microsoft.Office.Interop.Excel". Element not found. (Exception from HRESULT: 0x8002802B (TYPE_E_ELEMENTNOTFOUND)) which I get when attempting to rebuild a Class Library assembly with Visual Studio 2010.

Since this was a Warning, I pushed on in Debug mode. My Startup Project is a test application which starts Excel with a test Workbook. In that Workbook, I have code that attempts to set up an instance of my .dll, the .dll that Imports Microsoft.Office.Interop.Excel. It errors out with the message: Error trying to Create the StockDataTest.Tester instance. Error is: runtime error '429: ActiveX component can't create object'.

I suspect that the runtime error is related to the build time Warning and have been searching and poking around based on that suspicion. I suspect that it has to do no PIA for Office365/VS2010. The first time I opened this Solution after copying to the new machine, VS210 changed the old reference to "Microsoft.Office.Interop.Excel". to a reference that actual refers to C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Excel\15.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll which is the one that it could not determine the dependencies for.

Any help will be appreciated.

.net
excel
visual-studio-2010
office365
office-interop
asked on Stack Overflow Dec 11, 2019 by user3461770

2 Answers

0

The PIAs for the currently installed version of Office on any machine are located in the GAC. By default, Visual Studio will look for them in its own folders - Visual Studio installs the version of the Office PIAs that are current for its version there.

So you need to use the COM tab to reference a different set of PIAs. The names of the COM PIAs differ somewhat from those installed by Visual Studio. As I recall, they start with "Microsoft", such as "Microsoft.Excel" (I'm currently on a mobile device).

answered on Stack Overflow Dec 11, 2019 by Cindy Meister
0

The problem was solved by uninstalling my 64-bit version of Office 365 and installing the OFF-LINE version as 32-bit. After very limited tweaking to accommodate the 32-bit version, the problem was solved. I am not sure if the Off-Line install or the change to 32-bit or if both changes were required.

answered on Stack Overflow Jan 8, 2020 by user3461770

User contributions licensed under CC BY-SA 3.0