Developing and loading Excel Addin using c++ - excel-addins

I have built a NEW/empty Add-in for excel(.xll) 64bit. I am running Win10 on a virtual machine through VMWare, using VS2019, Excel 2013. When I load the Addin I get a not a Valid Add-in error. I was able to convert an old 32bit to 64bit which loaded and worked without a hitch. I matched all the values in Properties, and the code compiles with no warnings or errors but it will not load into excel, Just gives the not a valid add-in error.
When I checked the dependencies, I am missing ext-ms-win-oobe-query-l1-1-0.dll which I cannot find anywhere, but the same was also true for the add-in I converted which loads into excel perfectly.
thanks for the help.

Related

Unable to add reference to Word 2013 Interop Assembly

I have an existing .Net application that does some Word Interop work. On one machine where I have Word 2010 installed, I am able to reference the Word PIA (Microsoft.Office.Interop.Word) with no problem, compile, run - everything is great. Now, I'm trying to test against Word 2013 to ensure that my application is compatible with it. So on another machine with only Office 2013 installed (no other instances of Office), I try to build the same exact source code, but get compilation errors because VS2010 can't find the Word PIA. I tried updating the reference of the PIA, but it does not show up in the list of available assemblies.
I checked my installation of Office - every component available is installed, including .Net Programmability Support for Word. I looked at the GAC in Windows Explorer, and the assembly appears to be there. I tried restarting multiple times.
My application targets the .Net Framework 3.5 (but I also tried changing that to 4.0). I'm working in VS2010 Professional, and I have Office Professional Plus 2013 installed on the box. What could I be missing??
Thanks.

Lightswitch Desktop Application Wont Run in XP SP3

I have developed an application in Lightswitch 2012, and now need to deploy it to a desktop PC running XP SP3.
I have already looked at two previous posts Can't run Lightswitch 2012 Programm under Windows XP and
Lightswitch Desktop Application Wont Install in XP SP3
The two posts both refer to executing [editbin vslshost.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1] to modify the vslshost.exe file, though only the first post says it worked.
In my case, I have tried the above to update the vslshost.exe file, but when I publish my LS2012 project it reverts back to the default vslshost.exe file. And if I manually swap the file with the copy I modified, when I run the deployed app I get the following error:
System.Deployment.Application.InvalidDeploymentException (HashValidation)
- File, vslshost.exe, has a different computed hash than specified in manifest.
- Source: System.Deployment
So, the questions are
am I doing something wrong?
is there a master copy of vslshost.exe I need to update instead?
(BTW, I also ran the VS2012 (KB270250 from VS2012 Update 1 CTP 4))
Thanks for your help
As this is an internal company app, I have just convinced our IT guy to upgrade the machine, because the certain grief of trying the different possible solutions was just too much.
BUT if you MUST deploy to XP
To find out more, here are two pretty exhaustive posts with input directly from the Lightswitch team:
Progress on LS2012 desktop apps installing AND running on XP yet?
Windows XP 32 bit deployment
Enjoy....(???)

Crystal reports database connection issues

Failed to load database information. Details: The database DLL crdb_ado.dll could not be loaded. Error in File (filename) Failed to load database information.
I am receiving this error when i try to run a crystal report from my page. on the server I have installed the CRRedist2008_x86 and the dll file is in the business objects folder, but for some reason it is still not loading. I also checked to make sure I have the msvcp60.dll which is also needed but still am unable to run the report.
The server is running Windows Server 2008, has Visual Studio 2005 installed on it (not sure if that makes any difference). The application ran fine on my local machine, but after uploading it to the server, it's not wanting to play nice.
Any suggestions/help is appreciated.
Thank You
You should get Dependency Walker and open the crdb_ado.dll to confirm all the required files are there. Although checking for msvcp60.dll is generally the right idea, I've found that people are often looking for the wrong version of those files OR that other required DLLs are also missing.
Also, be sure the redist you are using matches the version of Crystal Reports you have referenced in your project. There is a difference between using, say Crystal Reports 2008 on top of Visual Studio 2005,, versus using the BUNDLED Crystal Reports that comes with Visual Studio 2005 (Or 2008, or 2010 for that matter.).
In fact, sometimes people don't realize that their .NET projects are referencing the "comes with Visual Studio" edition of Crystal Reports because they happen to have Crystal Reports version <whatever> installed on their PC.
That said, if you are pretty confident your redist of CRRedist2008_x86 matches what you are using, I'd focus on Dependency Walker to see if it is indicating a missing required file for the crdb_ado.dll.

Exporting a 10.0 Crystal report to PDF results in a blank PDF document(works on development machine does not work on other machines)

I have a small program developed using C#(dotnet 2.0 framework) and MySql 5.0 that reads data from a MySql database opens a report then exports the data to a PDF document . The program is working fine on my development machine .
I created a ClickOnce installation using VIsual Studio 2005 .Using that setup I installed the program on another computer on which crystal reports 10.0 and dot net framework 2.0 was not installed.
I installed dot net framework 2.0 and crystal redistributable for visual studio 2005 on the other machine.
On the other machine the program runs without any error . But the generated PDF file does not contain any data.
I exported the contents of the dataset(I am using the Push Model ) to an XML file to ensure that data is being retrieved .
Data is being retrieved as expected . But the generated PDF document is blank
Please note that I am using the 'MySQl Connector' to connect to MySql. Also the development machine is a Windows XP machine
The other computer is a Windows 2003 Server.
I have had the same problem too. Sometimes
I delete the temporary folder
Use CCleaner to clean
Set Security Policy to clean Virtual memory on shut down
Shut down + Switch on the system
Clearing history and cache
Combo of above 5
But now nothing is working for me. The crystal report shows data and design. Using crystal report's export to pdf option, the pdf works fine. But when exporting directly, the pdf has many pages which are blank. Not even design is showing.

failed to load database information

I have a desktop application that was migrated from .Net 1.0 to .Net 4.0. The application is using Crystal Reports and ttx files as the data definition files. The actual database queries happens in business objects and the data are set using SetDataSource() method.
After I upgraded this to .Net 4.0 (and Crystal Reports for Visual Studio 2010, version 13), the reports still working great on my developer workstation. But when I installed the application on the test machines I started getting errors like this:
Error in File temp_****{****}.rpt: Failed to load database information.
Where the asterics signify some kind of GUIDs.
The odd thing is that the reports that I did not touch continue to work. Only the reports where I had to update the data source (TTX file) generate this error.
I am also getting this error:
The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.
but I do not know if this is related.
The Keycoder error is not the problem. That is currently a warning message that seems to have no effect on anything (as best I can tell).
Don't be confused by the GUID stuff either. It's just a temp name that Crystal gives the report object.
The real error there is simply "failed to load database information". Something in your TTX update is at fault.
You might try running the report in Crystal 2008 on the machine giving you the problem. Your report is out-of-sync with the TTX file.