I am fairly new to C#..
I am using Visual Studio 12, the source I am using was last edited in VS 12.. But my problem is that it’s throwing me this error:

First of all, my computer username isn’t Martin, it is Administratoring — The creator of this project is Martin.. So that’s where I guess it’s coming from, but I don’t know how to fix this.
I have tried editing in Project > Properties > Build > Output Path — And it still doesn’t work. I am not too familiar with C#, and I’ve spent some time searching up for a solution but can’t find it anywhere.. Probably because I don’t know what I should be searching up (I’ve tried searching keywords and quotes from the error, but still nothing)
asked Dec 13, 2013 at 10:03
ReverbReverb
9132 gold badges12 silver badges17 bronze badges
0
Try these:
-
Make sure that output path of project is correct (Project > Properties > Build > Output path)
-
Go in menu to Build > Configuration Manager, and check if your main/entry project has checked Build. If not, check it.
![]()
phuclv
35.9k13 gold badges146 silver badges455 bronze badges
answered Dec 13, 2013 at 10:10
![]()
DibinDibin
1,4981 gold badge15 silver badges18 bronze badges
3
For those with this kind of problem — another solution:
Pay attention also to Warnings when you build solution. For example, I had referenced a dll built with higher version of .NET (4.5.2) than my main project (4.5)
After I referenced a dll built with 4.0 build process was successful.
answered Oct 28, 2016 at 6:58
![]()
NenoNeno
7073 gold badges20 silver badges33 bronze badges
1
Please try with the steps below:
- Right click on the Visual Studio Project — Properties — Debug — (Start Action section) — select «Start project» radio button.
- Right click on the Visual Studio Project — Properties — Debug — (Enable Debuggers section) — mark «Enable the Visual Studio hosting process»
- Save changes Ctrl + Shift + S) and run the project again.
P.S. I experienced the same problem when I was playing with the options to redirect the console input / output to text file and have selected the option Properties — Debug — (Start Action section) — Start external program. When I moved the Solution to another location on my computer the problem occurred because it was searching for an absolute path to the executable file. Restoring the Visual Studio Project default settings (see above) fixed the problem. For your reference I am using Visual Studio 2013 Professional.
![]()
Philipp M
1,8677 gold badges27 silver badges38 bronze badges
answered Aug 9, 2014 at 17:13
I had the same problem and unfortunately non of above answers worked for me . the solution that worked for me is :
right click on your startup project and select Properties — Debug and change «start external program: » to the correct path
Done!
answered Dec 30, 2015 at 10:45
Shima.YShima.Y
3634 gold badges9 silver badges18 bronze badges
0

Switch Target framework to 4.5.2 or something higher and bring it back to your original version (example: 4.5) then when you build, it will work.
answered Jan 3, 2020 at 6:34
![]()
Ranch CamalRanch Camal
4811 gold badge4 silver badges11 bronze badges
You are not set the startup project so only this error occur. Mostly this problem occur when your working with more project in the single solution.
First right click on your project and «Set as Start Up Project» and/or right click on the start up file inside the selected project and click «Set StartUp File».
answered Jun 26, 2015 at 4:01
![]()
Merbin JoeMerbin Joe
6015 silver badges27 bronze badges
I also get this error quite often.
I solve this by modifying the code (doing a very small change), saving it, then building the solution again.
answered Jul 10, 2015 at 8:31
![]()
Szabolcs AntalSzabolcs Antal
8584 gold badges13 silver badges27 bronze badges
In my case I had added a project to a solution manually, where that project was targeting a higher .NET version than the rest of the projects that were referencing it. Strange… there would normally be a somewhat more verbose, literal and descriptive error in such cases.
There wasn’t a real error but there was a warning that said as much.
answered Aug 10, 2016 at 12:53
Wim OmbeletsWim Ombelets
4,9373 gold badges40 silver badges54 bronze badges
Go to Project > properties > Debug Tab and set the Launch to «Project»
answered Mar 6, 2020 at 17:49
![]()
I had the same problems. I had to change file rights. Unmark «read only» in their properties.
answered Aug 28, 2015 at 13:02
olqolq
1411 gold badge2 silver badges9 bronze badges
So… it’s mid 2021 and I’m using visual Studio 2019 (version 16.10.2) which is the current version available, on a windows 10 pc.
I had to start a new project and following this steps solved the issue;
- When at the menu that says “Create new project”
- After you’ve selected your project template it takes you to another menu that says “Configure your new project”
- On this menu there’s an option that says “Place solution and project in the same directory”.
- By default this option was not checked, so I checked it and it solved the issue.
answered Jun 28, 2021 at 9:41
DivinityDivinity
931 silver badge7 bronze badges
I had the same problem with visual studio 2015 , and I found that there is reference is marked so I just deleted it , maybe you can delete this reference or reinstall it again
answered Oct 25, 2021 at 21:20
![]()
What solved it for me was deleting the line
<ImplicitUsings>enable</ImplicitUsings>
from the project property file. It caused Visual Studio to generate a (useless) file with multiple global using directive.
answered Mar 21, 2022 at 15:34
jonadvjonadv
3842 silver badges16 bronze badges
I faced the same problem , but in my solution i had many projects so in the solution configuration the start up project was by mistake a class library i changed the startup project and then i worked like a charm
right click on the sln => common proprties => choose right startup project .
answered May 27, 2022 at 11:45
![]()
I am fairly new to C#..
I am using Visual Studio 12, the source I am using was last edited in VS 12.. But my problem is that it’s throwing me this error:

First of all, my computer username isn’t Martin, it is Administratoring — The creator of this project is Martin.. So that’s where I guess it’s coming from, but I don’t know how to fix this.
I have tried editing in Project > Properties > Build > Output Path — And it still doesn’t work. I am not too familiar with C#, and I’ve spent some time searching up for a solution but can’t find it anywhere.. Probably because I don’t know what I should be searching up (I’ve tried searching keywords and quotes from the error, but still nothing)
asked Dec 13, 2013 at 10:03
ReverbReverb
9132 gold badges12 silver badges17 bronze badges
0
Try these:
-
Make sure that output path of project is correct (Project > Properties > Build > Output path)
-
Go in menu to Build > Configuration Manager, and check if your main/entry project has checked Build. If not, check it.
![]()
phuclv
35.9k13 gold badges146 silver badges455 bronze badges
answered Dec 13, 2013 at 10:10
![]()
DibinDibin
1,4981 gold badge15 silver badges18 bronze badges
3
For those with this kind of problem — another solution:
Pay attention also to Warnings when you build solution. For example, I had referenced a dll built with higher version of .NET (4.5.2) than my main project (4.5)
After I referenced a dll built with 4.0 build process was successful.
answered Oct 28, 2016 at 6:58
![]()
NenoNeno
7073 gold badges20 silver badges33 bronze badges
1
Please try with the steps below:
- Right click on the Visual Studio Project — Properties — Debug — (Start Action section) — select «Start project» radio button.
- Right click on the Visual Studio Project — Properties — Debug — (Enable Debuggers section) — mark «Enable the Visual Studio hosting process»
- Save changes Ctrl + Shift + S) and run the project again.
P.S. I experienced the same problem when I was playing with the options to redirect the console input / output to text file and have selected the option Properties — Debug — (Start Action section) — Start external program. When I moved the Solution to another location on my computer the problem occurred because it was searching for an absolute path to the executable file. Restoring the Visual Studio Project default settings (see above) fixed the problem. For your reference I am using Visual Studio 2013 Professional.
![]()
Philipp M
1,8677 gold badges27 silver badges38 bronze badges
answered Aug 9, 2014 at 17:13
I had the same problem and unfortunately non of above answers worked for me . the solution that worked for me is :
right click on your startup project and select Properties — Debug and change «start external program: » to the correct path
Done!
answered Dec 30, 2015 at 10:45
Shima.YShima.Y
3634 gold badges9 silver badges18 bronze badges
0

Switch Target framework to 4.5.2 or something higher and bring it back to your original version (example: 4.5) then when you build, it will work.
answered Jan 3, 2020 at 6:34
![]()
Ranch CamalRanch Camal
4811 gold badge4 silver badges11 bronze badges
You are not set the startup project so only this error occur. Mostly this problem occur when your working with more project in the single solution.
First right click on your project and «Set as Start Up Project» and/or right click on the start up file inside the selected project and click «Set StartUp File».
answered Jun 26, 2015 at 4:01
![]()
Merbin JoeMerbin Joe
6015 silver badges27 bronze badges
I also get this error quite often.
I solve this by modifying the code (doing a very small change), saving it, then building the solution again.
answered Jul 10, 2015 at 8:31
![]()
Szabolcs AntalSzabolcs Antal
8584 gold badges13 silver badges27 bronze badges
In my case I had added a project to a solution manually, where that project was targeting a higher .NET version than the rest of the projects that were referencing it. Strange… there would normally be a somewhat more verbose, literal and descriptive error in such cases.
There wasn’t a real error but there was a warning that said as much.
answered Aug 10, 2016 at 12:53
Wim OmbeletsWim Ombelets
4,9373 gold badges40 silver badges54 bronze badges
Go to Project > properties > Debug Tab and set the Launch to «Project»
answered Mar 6, 2020 at 17:49
![]()
I had the same problems. I had to change file rights. Unmark «read only» in their properties.
answered Aug 28, 2015 at 13:02
olqolq
1411 gold badge2 silver badges9 bronze badges
So… it’s mid 2021 and I’m using visual Studio 2019 (version 16.10.2) which is the current version available, on a windows 10 pc.
I had to start a new project and following this steps solved the issue;
- When at the menu that says “Create new project”
- After you’ve selected your project template it takes you to another menu that says “Configure your new project”
- On this menu there’s an option that says “Place solution and project in the same directory”.
- By default this option was not checked, so I checked it and it solved the issue.
answered Jun 28, 2021 at 9:41
DivinityDivinity
931 silver badge7 bronze badges
I had the same problem with visual studio 2015 , and I found that there is reference is marked so I just deleted it , maybe you can delete this reference or reinstall it again
answered Oct 25, 2021 at 21:20
![]()
What solved it for me was deleting the line
<ImplicitUsings>enable</ImplicitUsings>
from the project property file. It caused Visual Studio to generate a (useless) file with multiple global using directive.
answered Mar 21, 2022 at 15:34
jonadvjonadv
3842 silver badges16 bronze badges
I faced the same problem , but in my solution i had many projects so in the solution configuration the start up project was by mistake a class library i changed the startup project and then i worked like a charm
right click on the sln => common proprties => choose right startup project .
answered May 27, 2022 at 11:45
![]()
I have a very simple C++ application.
#include <stdio.h>
#include <iostream>
int main(int argc, char argv[]) {
cout << "hi" << endl;
}
When I compile for the first time in debug mode, Visual Studio complains «Unable to start program ..Debugmyprogram.exe. The system cannot find the file specified.»
However, I think that this is obvious because I am compiling for the first time, right? This executable should not exist yet, so why is Visual Studio balking at compiling?
Thanks for your help.
Also, when I build, the following log appears:
When I build (Build->Build solution.), this log appears:
1>------ Build started: Project: print_digits, Configuration: Debug Win32 ------
1>Build started 12/23/2011 4:32:17 PM.
1>InitializeBuildStatus:
1> Creating "Debugprint_digits.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1> Deleting file "Debugprint_digits.unsuccessfulbuild".
1> Touching "Debugprint_digits.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.08
It says build succeeded, but no executable is being built for some reason.
|
75 / 35 / 17 Регистрация: 24.07.2014 Сообщений: 357 |
|
|
1 |
|
Исполняемый файл для отладки, указанный в профиле отладки, не существует26.05.2020, 17:06. Показов 15224. Ответов 1
После того как удалил папку с частью ненужных исходных кодов, вылезла эта ошибка. Восстановление файлов ситуации уже не меняет. Что делать?
__________________
0 |
|
Администратор
15226 / 12265 / 4902 Регистрация: 17.03.2014 Сообщений: 24,867 Записей в блоге: 1 |
|
|
27.05.2020, 01:10 |
2 |
|
Справлюсь, в окне Вывод видно что проект откомпилировался с ошибками. Открой окно «Список ошибок» и исправь их.
1 |
|
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
27.05.2020, 01:10 |
|
Помогаю со студенческими работами здесь Инструменты для отладки Компиляция для отладки Использование Firebug для отладки Что лучше для отладки? Планшет не видится для отладки вывод значений для отладки Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 2 |
- Remove From My Forums
-
Вопрос
-
Появилась такая проблема сразу после установки…. При создании проэкта(например простое консольное приложение на Сишарпе)и при попытке запустить дебагинг выдает: не удается начать отладку так как отсутствует объект отладки…. попробуйте перестроить
проэкт или установить QouputPath и AsemblyName так, что бы они указывали на окончательную сборку. (все что после точек я на память написал), я много раз перестраивал, делал другие проэкты, одно и то же… Студия создает все фалы, кроме .exe файла….Переустанавливал студию 2 раза. Делал 3 исправления установки, не помогает…. Сбрасывал настройки по умолчанию.
Как исправить данную проблему?
Среда: Microsoft Visual Studio 2012(x32) Profesional
ОС: MS Windows 7 x64 ultimate
-
Изменено
4 октября 2012 г. 11:18
-
Изменен тип
PsyChokam
4 октября 2012 г. 17:56
-
Изменено
Ответы
-
Проверьте в свойствах проекта на вкладке Build есть настройка Output Path, там должен быть задан существующий путь в который должен быть собран EXE файл.
AssemblyName указывается там же, только на первой вкладке Application (как правило оно совпадает с именем вашего проекта). Проверьте что и оно задано.
Так же было бы полезным, если вы создадите пустое консольное приложение (которое у вас не получается собрать) и выложите его на файл-хостинг, а ссылку опубликуете здесь, для того чтобы была возможность проверить его работоспособность.
Спасибо.
Для связи [mail]
-
Помечено в качестве ответа
Abolmasov Dmitry
17 октября 2012 г. 11:57
-
Помечено в качестве ответа
У меня очень простое приложение на С++.
#include <stdio.h>
#include <iostream>
int main(int argc, char argv[]) {
cout << "hi" << endl;
}
Когда я впервые скомпилирован в режиме отладки, Visual Studio жалуется «Невозможно запустить программу.. Debugmyprogram.exe. Система не может найти указанный файл».
Однако, я думаю, что это очевидно, потому что я собираюсь в первый раз, правильно? Этот исполняемый файл еще не существует, поэтому почему компиляция Visual Studio не выполняется?
Спасибо за вашу помощь.
Кроме того, при построении появляется следующий журнал:
Когда я создаю (Build- > Build solution.), этот журнал появляется:
1>------ Build started: Project: print_digits, Configuration: Debug Win32 ------
1>Build started 12/23/2011 4:32:17 PM.
1>InitializeBuildStatus:
1> Creating "Debugprint_digits.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1> Deleting file "Debugprint_digits.unsuccessfulbuild".
1> Touching "Debugprint_digits.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.08
Он говорит, что сборка выполнена успешно, но по какой-то причине никакой исполняемый файл не создается.
I have a solution in C:full path hereVS2010blender.sln
This solution contains many projects(around 100). When I compile them, they all work fine. I can run them without any problem, and (quite) everything works (there are some bugs).
One of the projects is ALL_BUILD, but it gives the same error if I try to debug INSTALL(another project). I’m compiling with RELWithDebInfo as configuration, and if I execute the program manually it works. It is outputted in C:full path hereVS2010binRelWithDebInfo
But if I try to run the compiler, it says
«Unable to start program
C:full path hereVS2010RelWithDebInfoALL_BUILD
Specified file cannot be found»
I tried to copy the compiled program into the path required by VS, but it raised the same error.
What should I do to solve this? Right now I set up cmake to generate also a mingw project and I compile it and debug it with gdb, but this is a really a slow and impractical workflow, and I would like to use the VS debugger.
I must say that if I compile with Debug as configuration, the program doesn’t even start.
I’m using VS2010 Express on Win7 64bit
(This is a big open source program, so I don’t know exactly whatever it does)
I have a solution in C:full path hereVS2010blender.sln
This solution contains many projects(around 100). When I compile them, they all work fine. I can run them without any problem, and (quite) everything works (there are some bugs).
One of the projects is ALL_BUILD, but it gives the same error if I try to debug INSTALL(another project). I’m compiling with RELWithDebInfo as configuration, and if I execute the program manually it works. It is outputted in C:full path hereVS2010binRelWithDebInfo
But if I try to run the compiler, it says
«Unable to start program
C:full path hereVS2010RelWithDebInfoALL_BUILD
Specified file cannot be found»
I tried to copy the compiled program into the path required by VS, but it raised the same error.
What should I do to solve this? Right now I set up cmake to generate also a mingw project and I compile it and debug it with gdb, but this is a really a slow and impractical workflow, and I would like to use the VS debugger.
I must say that if I compile with Debug as configuration, the program doesn’t even start.
I’m using VS2010 Express on Win7 64bit
(This is a big open source program, so I don’t know exactly whatever it does)