I have a problem with UWP and Visual Studio 2015 Pro. I created a Visual C++ UWP app and I just wanna to send requests to a server. This code compiles good, but when Studio starts the application, I get this error:
Unable to activate Windows Store app 'Package Name'. The App5.exe
process started, but the activation request failed with error 'The app
didn't start'.
I found this problem on Microsoft's forum and on Stackoverflow too, but this solutions doesn't help me! I tried restore developer mode and license, tried reinstalling Visual Studio (VS 2017 Community has the problem too), tried reinstalling app, and create new project too. Same results.
But Console Application works good!
How I can fix this problem? Thanks!
UPD:
In Debug/Output i have:
'App1.exe' (Win32): Loaded 'C:\Users\Alex\Documents\Visual Studio 2015\Projects\App1\Debug\App1\AppX\App1.exe'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\combase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ucrtbase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.24210.0_x86__8wekyb3d8bbwe\vccorlib140d_app.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp_win.dll'. Symbols loaded.
'App1.exe' (Win32): Loaded 'C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.24210.0_x86__8wekyb3d8bbwe\msvcp140d_app.dll'. Symbols loaded.
The thread 0x25bc has exited with code -1073741515 (0xc0000135).
The thread 0x20b8 has exited with code -1073741515 (0xc0000135).
The program '[8128] App1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Dependency walker show this errors: https://pp.userapi.com/c824601/v824601273/444bf/awP70BN-phs.jpg
Related
I am trying to write a simple program. Vs 2019, Windows 10 64bits
Debug->x64
Followed [Configure Visual C++ Projects to Target 64-Bit Platforms][1]
#include <windows.h>
#include "res/resource.h"
#include <iostream>
#include <core_api/lsproject.h>
#include <core_api/lslocalworkspace.h>
#include <plugin_api/lsscenecontext.h>
using namespace SCENE_API;
using namespace std;
#include <Commdlg.h>
int main()
{
LSString filePath;
std::cout << "Hello World!\n";
}
Where [LSString][2] can be found here.
I am getting an error:
The program '[11460] FAPPS.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
-------------------EDITED--------------------------------------------------
After running the executable in debug mode in visual studio, I am getting
'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\myfirstapp1.exe'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\Core_API.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
The thread 0x64c0 has exited with code -1073741515 (0xc0000135).
The thread 0x6604 has exited with code -1073741515 (0xc0000135).
The thread 0x644 has exited with code -1073741515 (0xc0000135).
The program '[25976] myfirstapp1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Before going to complex try repairing your visual studio installation from the vs installer. It worked form. Then try to install the latest SDKs for your platform (x64 for example, be careful) from the official Microsoft website. I apologize for my terrible english. Greetings from Italy. 😉😁
Try to Run your executable in debug mode in visual studio. It prints the library its trying to load .
When I try to open one of the sample models inside samples folder(C:\Program Files\IBM\ILOG\CPLEX_Studio127\cplex\examples\x64_windows_vs2015\stat_mdas) and try to build it says build is successful but when I want to debug it setting a breakpoint to a line I got the following lines:
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Program Files\IBM\ILOG\CPLEX_Studio127\opl\bin\x64_win64\cplex1270.dll'. Module was built without symbols.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\wsock32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'admipex1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
The thread 0x62c8 has exited with code 0 (0x0).
The thread 0x3414 has exited with code 0 (0x0).
The thread 0x3ea4 has exited with code 0 (0x0).
The program '[12884] admipex1.exe' has exited with code 0 (0x0).
It seems like Visual Studio 2015 is not supported by any CPLEX version yet.
Try using other Visual Studio versions like 2013 or earlier.
Follow this guide here:
http://www.leandro-coelho.com/how-to-configure-ms-visual-studio-to-use-ibm-cplex-concert/
I have searched in other answers but i dont found how to fix it and i cant understand why this happens someone can help?
When i compile with debug mode every thing runs ok, even if i change the debug configuration from Multi-threaded Debug DLL (/MDd) to Multi-threaded DLL (/MD) but when compile with release program crashes when try to open file with
std::ofstream inFile(fileNamePath, std::ios_base::app | std::ios_base::out);
dont know how many others errors have more because when program begins run he opens a configuration file and crash.
in buid time this message apears
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
and when the program begins run this happens on debug
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wsock32.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'Servidor.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
First-chance exception at 0x777CDF63 (ntdll.dll) in Servidor.exe: 0xC0000005: Access violation writing location 0x00000014.
Unhandled exception at 0x777CDF63 (ntdll.dll) in Servidor.exe: 0xC0000005: Access violation writing location 0x00000014.
all other files have been configured whith Multi-threaded Debug DLL (/MDd) for debug and Multi-threaded DLL (/MD) for release.
My educated guess you are mixing debug and release configuration.
Try to compile your code with Multi-threaded DLL (as you did) in release without optimizations so you get a program that can be debugged and uses the same CRT.
I am having problems setting up opengl project. I am following this tutorial. I am able to build it without errors or warnings, but when I execute it I get 0xc000007b error.
It seems my Win32 applicaton tries to load 64bit freeglut.dll in C:\Windows\SysWOW64, because when I deleted it from C:\Windows\SysWOW64 I got error: The program '[3124] Project1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Also in Output I can see:
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Symbols loaded.
What can I do? Thank you
Edit: Pasting 32bit dll directly in visual studio 2012\Projects\Project1\Debug fixes the problem! Why doesnt application look into C:\Windows\System32 folder for library?
Things in SysWOW64 are not 64-bit. Those are DLLs used for Windows on Windows (Microsoft's 32-bit translation layer). Basically you have a 64-bit version of Windows, and that is where it stores the 32-bit DLLs.
You actually have it backwards in your head, believe it or not. 64-bit DLLs reside in C:\Windows\System32 on a 64-bit system, as strange as that may sound. Microsoft probably had every intention of using System64 but so much software is/was hardcoded to use System32 and Win32 that the 32 almost has no meaning anymore.
If you want to put your freeglut DLL in a single central location, put it in the working directory Microsoft Visual Studio is configured to run your project from. You can put it in Project1\Debug as you mentioned, but this means you also have to put a copy of freeglut in Project1\Release for your software to function correctly in release builds. Visual Studio actually has a separate working directory in the project configuration ("Debugger | Working Directory") where it will run your program from when you press "Execute" or "Debug" - this is the directory your freeglut DLL should go in to avoid having to put a copy in each build configuration's output directory.
When you ship your software, put it in the same directory as the .exe, but for development take advantage of the projects's working directory. In any case, you should never put a DLL into an Operating System directory unless you know what you are doing. There is a reason you need administrator privileges to write anything to either of the directories you mentioned.
In fact, the author of the tutorial you linked needs to be reprimanded for improperly explaining the function of System32 and SysWOW64 and suggesting you install your DLL to either of those two locations.
Hi i have a problem running the OpenCV application using Visual Studio 2013 and Windows 8.1 x64.
I followed this guide: http://www.youtube.com/watch?v=cgo0UitHfp8
I did everything as said in the guide except the changes:
x64 instead of x86 and vs11 instead of vs10 in file paths.
Im trying to run it on OpenCV 2.4.6 (where file names are like 'opencv_core246.lib' and not 'opencv_core231.lib' like in the error.
Can you help me?
Make sure that you are including and linking the correct directories. This can be done in Visual Studio solution properties (right click on the solution and select Properties). For example (this is in Visual Studio 2010, but it should be similar in Visual Studio 2013)..
Set include path
Set library path
Set library dependencies
The problem was solved partially. Linking x86 libraries instead of x64 worked but no OpenCV applications can be ran.
Couple of different errors appear:
'myOpenCV.exe' (Win32): Loaded 'C:\Users\LK\Documents\Visual Studio 2013\Projects\myOpenCV\Debug\myOpenCV.exe'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\opencv246\build\x86\vc11\bin\opencv_core246d.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\opencv246\build\x86\vc11\bin\opencv_highgui246d.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\guard32.dll'. Cannot find or open the PDB file.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\fltLib.dll'. Symbols loaded.
'myOpenCV.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Symbols loaded.
The program '[4284] myOpenCV.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
Also a window appears saying the program cannot be executed because MSVCP110D.dll is missing. Should I install something? Or maybe just change the project settings?