Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start program. [VALUE].dll is not a valid Win32 application error in Visual Studio 2017

I have developed an C#, ASP.NET web application in a Windows 7 machine using Visual Studio 2012. Now i had imported the entire project into VS 2017 running on windows 10 machine, and when i try to enter the debugging mode to analyze my code it shows the following error:

enter image description here

I guess the project configurations are conflicting hence it throws this error. Any suggestions??

like image 321
user6304166 Avatar asked Feb 03 '18 22:02

user6304166


People also ask

How do I fix Win32 application is not valid?

Re-download the file from the original source where you got it in order to repair the issue. If it does not work, you may need to run the file with the help of using a different version of Windows or even MS-DOS. Sometimes or on rare occasions, Windows may report a bug as "not a valid Win32 application.

What does not a valid Win32 application error mean?

The message "winzipxxx.exe is not a valid win32 application" indicates that the EXE file did not download completely. When Windows then tries to run what appears to be an executable file, it finds that it is not a valid Windows 32-bit application file due to the incomplete download.

What is 1 is not a valid Win32 application?

The error %1 is not a valid Win32 application generally occurs due to a rogue file named “C:\Program” that exists on the WSUS server. This file seems to cause issues related to the WSUS certificate being properly detected and imported.


1 Answers

The same error happens when Visual Studio solution has selected the wrong Startup Project. The bold project is the designated startup project.

Go to the Solution Explorer > Right click on the correct project and select "Set as StartUp Project" in the context menu.

like image 200
Thomas Avatar answered Sep 17 '22 17:09

Thomas