디버깅을 시작할 수 없습니다. 시작 프로젝트를 시작할 수 없습니다. VS2015
VS2015에서 새로운 콘솔 프로젝트를 시작했습니다. 이 코드 만 있습니다.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SautinSoft;
namespace PdfParser
{
class Program
{
static void Main(string[] args)
{
string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
SautinSoft.PdfFocus f = new PdfFocus();
f.OpenPdf(@"path:\abc.pdf");
if (f.PageCount > 0)
f.ToExcel(@"path:\abc.xls");
}
}
}
실행하려고하면 다음과 같은 메시지가 나타납니다.
디버깅을 시작할 수 없습니다. 시작 프로젝트를 시작할 수 없습니다. 시작 프로젝트에 대한 디버그 설정을 확인하십시오.
이 문제를 어떻게 해결할 수 있습니까? 감사.
MSVC2015를 Update3으로 업그레이드 한 후 동일한 문제가 발생했습니다. std::map
Watch 창에서 끔찍한 std::_Tree<std::_Tmap_traits...
등 으로 표시되는 대신 일부 플러그인에서 예외가 발생하기 시작했고 일부 프로젝트는 디버그 모드에서 실행할 수 없었습니다.
을 (를) 삭제하여 모든 문제가 해결되었습니다 CurrentSettings.vssettings
. 일반적으로 Documents\Visual Studio 2015\Settings
그렇지 않은 경우 '도구-> 옵션-> 환경-> 설정 가져 오기 및 내보내기'로 이동하여이 파일의 위치를 찾습니다.
새로운 스캐 폴딩 된 ASP.NET Core 1.0 웹 애플리케이션에서이 문제가 발생했습니다.
Visual Studio를 다시 시작하면 해결되었습니다.
나도 이것에 집착했다. bin 및 obj 폴더를 모두 제거하고 다시 빌드 한 다음 시작했습니다.
무의미한 오류 ....
start (without) Debugging
내 Asp.Net을 시도 할 때이 문제가 발생했습니다.MVC project
Visual Studio를 다음과 같이 실행하고 있습니까? Administrator
그래서
restart
비주얼 스튜디오 AsAdministrator
"디버깅을 시작할 수 없음"외에도 다시 빌드하려고 할 때 "작업을 완료 할 수 없습니다. 지정되지 않은 오류"라는 오류가 발생했습니다. Visual Studio 팝업 : "작업을 완료 할 수 없습니다"
덕분에 Visual Studio 2015를 닫은 다음 다시 여는 것으로 충분 했습니다 .
Visual Studio를 관리자로 시작하고 있는지 확인합니다.
- Visual Studio 2015 바로 가기를 마우스 오른쪽 단추로 클릭하십시오.
- 바로 가기 탭을 선택하십시오.
- 고급을 클릭하십시오.
- Check the box to "Run as administrator" at all times(see below)
This has resolved the issue for me with the exact error message in question.
It is not ideal to run the VS in administrator mode at all times. Make sure you un-check the box once your issue has been resolved.
There is no need to delete everything in my case, I just opened the
"CurrentSettings.vssettings"
file and commented this property
<PropertyValue name="DefaultBehaviorForStartupProjects">1</PropertyValue>
and everything fixed.
I just had the same problem and solved it by deleting the .vs directory in the project directory.
Just delete the .vs hidden folder. This folder resides at the same location where the sln file is. Deleting this folder also refreshes intellisense cache and would fix any issues with that. Hope this helps.
Delete all relevant /obj and /bin folders. Run again.
Close the Visual Studio and re-open it again.
Just restart your visual studio and run as admin.
I had this with a Xamarin.iOS project in my Xamarin.Forms solution. I tried every suggestion here, without success.
The source of the error was a misconfigured .csproj of the project. I never edited it myself and not even touched the project properties. I use Visual Studio 2017 RC. I came across the solution when I compared the project file with previous versions on Source Control.
Solution: Compare the project file with a previous version and try to granually revert changes until you eliminated the problem and know what the cause was.
The solution for me was to delete all *.user
files that are normally generated for both solution and project files
I found this problem too. But after restart the Visual Studio Community 2015 as an administrator I found new problem :
And then I try to open another solution, close the another solution, and open the solution which the problem occur, then the problem solved.
Had the Same Issue with the existing application, I deleted the vs settings but still the issue remained,
Finally i just restarted the VS and it worked fine.
I think sometimes when we load the project some library doesn't get loaded with the solution so the best option before doing anything is simply restarting the VS.
After adding a project reference 'MyProjectReference' to my app, then removing it, I was also getting the same error :
Unable to start debugging . The startup project could not be launched. Verify debug settings for the startup project.
Deleting configuration, running as admin, restarting VS, rebooting machine all had no effect.
After running my web app without debugging (Right-Click Project -> View In Browser (Google Chrome) I got a much more useful error:
Could not load file or assembly 'MyProjectReference' or one of its dependencies. An attempt was made to load a program with an incorrect format.
My Solution was then to re-add back to the solution, then remove it again. After that rebuild and debug worked.
How I fixed my issue, I closed project that had that error , created new project build new project then opened the project that had an issue and build it. That worked for me.
Make sure you close all instances of Visual Studio and then restart as Administrator. In my case I had multiple instances of Visual Studio open and I had to close them all and then restart Visual Studio as admin in order to get things working.
I had visual studio 2015 with an ASP.net MVC5 arcitectured with DDD (Domain Driven Design). The problem was the same since I just opened visual studio normally.
The problem was solved when I closed all instance visual studio and restarted as an adminstrator.
I also faced to this issue in VS 2015 , but finally I resolved it by following bellow steps
In VS go to : Tools -> Options - > Projects and Solutions -> Build and Run
Select "Always Build" in "On Run when project are out of date"
This issue happened to me with the Latest VS2019.
I've tried everything here, but unfortunately without any result.
Finally, I've restarted the IIS server, also manually Recycled the "Default Application Pool".
After debugging issue fixed.
For me solution was to run testapp.csproj
instead of testapp.sln
. This can be selected from drop down next to green play button.
Simply updated visual studio which then prompted PC restart. This is what fixed the problem for me.
Note: I tried some of the above / below but to no avail.
I got this problem solved by clearing MEF component cache.
Use this VS Extension to clear cache very easily.!!
'developer tip' 카테고리의 다른 글
C ++에서 숫자가 2의 거듭 제곱인지 테스트하는 가장 간단한 방법은 무엇입니까? (0) | 2020.09.17 |
---|---|
루프없이 레코드를 유지하면서 배열에서 빈 문자열을 제거 하시겠습니까? (0) | 2020.09.17 |
JavaScript에서 단어를 자르지 않고 문자열 단축 (0) | 2020.09.17 |
버튼을 누를 때 UITableView 셀 행 가져 오기 (0) | 2020.09.17 |
프로젝트 파일을 버전 관리하에 유지해야합니까? (0) | 2020.09.16 |