© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
31 replies
stiffening

✅ "debug executable 'location' specified in the [project] debug profile does not exist"

hello, i'm an absolute beginner with c# and am trying to work on a project for school. whenever i rebuild and try to run without debugging, visual studio gives me the error message "debug executable 'location' specified in the [project] debug profile does not exist." (location is the folder, and project is project name; i didn't list them because my professor requires it to have my full name in it and i'd prefer not to post that info online.)

this happens when i add some coding. when i remove the coding, it does open the project. i don't know what i'm doing wrong to cause this.

the project is supposed to be income tax calculator. the following is the coding i've been trying to use that causes the errors:

private void btnCalculate_Click(object sender, EventArgs e)
{
    decimal TaxableIncome = Convert.ToDecimal(txtTaxableIncome.Text);
    decimal TaxOwed = Convert.ToDecimal(txtTaxOwed.Text);

    if (TaxableIncome <= 0m)
        TaxOwed = .0m;

    else if (TaxableIncome >= 0m && TaxableIncome <= 11000m)
        TaxOwed = 0m + .10m;

    else if (TaxableIncome > 11000m && TaxableIncome <= 44725)
        TaxOwed = 1100m + (TaxableIncome * .12);

    else if (TaxableIncome > 44725 && TaxableIncome <= 95375)
        TaxOwed = 5147m + (TaxableIncome * .22);

    else if (TaxableIncome > 95375 && TaxableIncome <= 182100)
        TaxOwed = 16290m + (TaxableIncome * .24);

    else if (TaxableIncome > 182100 && TaxableIncome <= 231250)
        TaxOwed = 37104m + (TaxableIncome * .32);

    else if (TaxableIncome > 231250 && TaxableIncome <= 578125)
        TaxOwed = 52832m + (TaxableIncome * .35);

    else if (TaxableIncome < 578125)
        TaxOwed = 174238.25 + (TaxableIncome * .37);
}  
private void btnCalculate_Click(object sender, EventArgs e)
{
    decimal TaxableIncome = Convert.ToDecimal(txtTaxableIncome.Text);
    decimal TaxOwed = Convert.ToDecimal(txtTaxOwed.Text);

    if (TaxableIncome <= 0m)
        TaxOwed = .0m;

    else if (TaxableIncome >= 0m && TaxableIncome <= 11000m)
        TaxOwed = 0m + .10m;

    else if (TaxableIncome > 11000m && TaxableIncome <= 44725)
        TaxOwed = 1100m + (TaxableIncome * .12);

    else if (TaxableIncome > 44725 && TaxableIncome <= 95375)
        TaxOwed = 5147m + (TaxableIncome * .22);

    else if (TaxableIncome > 95375 && TaxableIncome <= 182100)
        TaxOwed = 16290m + (TaxableIncome * .24);

    else if (TaxableIncome > 182100 && TaxableIncome <= 231250)
        TaxOwed = 37104m + (TaxableIncome * .32);

    else if (TaxableIncome > 231250 && TaxableIncome <= 578125)
        TaxOwed = 52832m + (TaxableIncome * .35);

    else if (TaxableIncome < 578125)
        TaxOwed = 174238.25 + (TaxableIncome * .37);
}  


any and all advice appreciated, thanks so much!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

debug profile does not exist
C#CC# / help
4y ago
I keep getting debug profile does not exist
C#CC# / help
3y ago
The target "GetEFProjectMetadata" does not exist in the project.
C#CC# / help
3y ago