Amazon aws missing dlls (MSVCP140, VCRUNTIME140, CONCRT140) - c++

I made an web server app, that should reside on amazon aws vitual machine with win10.
When i trying execute this app, it says that it missing dlls (MSVCP140, VCRUNTIME140, CONCRT140)
In the app i use cpprestsdk, cryptocpp, opencv.
I try to install various visual C++ redistributables, but its not gave the result.
Downloaded this dlls separately and put it into system32 foled ,but either no result.
When i put dlls in app folder it gave me the error that app was unable to start correctly (0xc0000007b).
Tryed to execute app builded with /MT flag (it actually dont remove all the dlls) and problem is still there
Amazon instance type is t2.micro

Related

Windows service not showing up

I have a windows service project that I inherited and need to migrate it to a new server. I have made changes to some code, and so I created a new setup project in VS 2017. I added the .exe of the service to the set up package, and rebuilt both the service and the setup projects. When I run the .msi it seems to complete installation but when I look in the Windows Services list it's not there. What am I missing?
Any help is greatly appreciated. Thanks!
The installer probably didn't run the installutil.exe program.
You can do this manually by dropping to a command prompt then navigating to the location that the installer put the .exe file. From there run this:
installutil.exe myservice.exe
where myservice is the exe file you generated.
For more information:
https://learn.microsoft.com/en-us/dotnet/framework/tools/installutil-exe-installer-tool
Also, you might need to add the installutil.exe path. It's part of the .net framework and will be found in that install directory.

GhostScript in Azure

I'm in the process of moving some on-premise app to Azure and struggling with once aspect - GhostScript. We use GhostScript to convert PDF's to multi page TIFF's. At present this is deployed in an Azure VM, but it seems like a WebApp and WebJob would be a better fit - from a management point of view. In all of my testing I've been unable to get a job to run the GhostScript exe.
Has anyone been able to run GhostScript or any third party exe in a WebJob?
I have tried packaging the GhostScript exe, lib and dll into a ZIP file and then unzip to Path.GetTempPath() and then using a new System.Diagnostics.Process to run the exe with the required parameters - this didn't work - the process refused to start with an exit code of -1073741819.
Any help or suggestions would be appreciated.
We got it to work here:
Converting PDFs to Multipage Tiff files Using Azure WebJobs. The key was putting the Ghostscript assemblies in the root of the project and setting "Copy always". This is what allows them to be pushed to the Azure server, and to end up in the correct place, when you publish the project.
Also, we needed to download the file to be processed by Ghostscript to the local Azure WebJob temp directory. This is discovered by using the following code:
Environment.GetEnvironmentVariable("WEBJOBS_PATH");

CFX_ImageCR3 | Unable to Load Library on Windows Server 2008 R2 64-Bit running ColdFusion 10 64 Bit

We are attempting to migrate our old web server to a new web server. We are trying to install Effalre's CFX_ImageCR3 tag on our Windows Server 2008 R2 64 Bit server running ColdFusion 10 64-Bit.
We've installed the latest setup file from Efflare's website and have registered the CFX C++ Tag in the ColdFusion administrator just as the documentation describes, but when the code that uses the CFX_ImageCR3 tag executes, it says "Unable to load library."
After searching Google, one person recommended we run Dependency Walker to see what DLL's were missing. On the new server, it says the following 'delay-load dependency module was not found'
- GPSVC.DLL
- IESHIMS.DLL
- MF.DLL
- MFPLAT.DLL
- MFREADWRITE.DLL
- WLANAPI.DLL
For comparison, I ran the same program on the old server on which that CFX tag is working. It reported that GPSVC.DLL and IESHIMS.DLL could not load, but the other ones could.
Both of the servers are running the same Operation Systems and the only difference is Cold Fusion 10. Is it possible that I'm just missing some DLLs on the new server? Could it be that it is not compatible with ColdFusion 10 64-Bit? Can you load 32-bit DLL CFX C++ tags on a 64-bit install of CF?
Any help is greatly appreciated.
Thanks
Solution found. It appears that the C++ CFX tax is 32 bit and is compatible with ColdFusion 64-bit version. Effalre currently has a beta installer on their VIP download site, cfx_imagecr_3_service_beta_081030.exe, which is the Java tag.
This was a bit tricky to figure out at first, but once you install the beta make sure you follow these steps:
Install the beta installer to C:\efflare\ (Do not install to C:\Program Files (x86)!)
Start the windows service 'Efflare ImageCR 3 Service'
Open the CF Administrator then goto Java and JVM, in the ColdFusion Class Path add: {applicatino.home}/wwwroot/WEB-INF/lib,C:/Efflare/imagecr3.jar
Restart ColdFusion
NOTE: The class path if for the default ColdFusion 10 install. The first path must point to the directory where you have a cfx.jar file. If you get the error -java.lang.NoClassDefFoundError Exception com/allaire/cfx/CustomTag it is because the class path is not pointing to where the cfx.jar file is located at.

Windows, Mingw Qt Application Does Not Run On Deployed Computers

I have created a Qt application with Mingw. The application runs properly on the development computer after copying the required DLL's to the directory. However, when deploying on external computers, the application does not run at all.
Update:
In addition, the application uses Sqlite3 via QtSql.
It's quite likely you're still missing some dll.
Check the Windows event log for any errors after running the application. (Administrative Tools->Event Viewer).
Try launching the application from a command prompt window.
Try Dependency Walker.
Another thought is some missing configuration file or registry settings.
Double check against the Qt docs for deploying Windows Qt applications.

vs 2008 deployment project not working

I have a C++ console application that I want to deploy using a vs2008 setup project. When I create the setup project and add the output from my console app, the setup project detects that it needs MSVCP90.dll and MSVCR90.dll. When I build the project, those two dlls are included in the .msi file as expected.
When I download and launch the installer, everything goes as expected and the console app and the dlls are unpacked into the proper directory on the local machine.
When I try and run the app, I get the following error:
Error 1721. There is a problem with
this Windows Installer package. A
program required for this install to
complete could not be run. Contact
your support personnel or package
vendor.
I've tried compiling the app with /MT and /MD neither one works.
When I run a dependency walker against the app, it reports that it needs MSVCP90.dll and MSVCR90.dll as expected.
Finally, if I set the installer to require the Visual C++ runtime libraries, it downloads them and everything works fine.
Obviously, I would like to avoid downloading the CRT libraries.
Thanks for any help,
Jon
Check out this example on how to add the appropriate merge modules and deploy them to your target machine along with your setup.