Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7645961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:05:00+00:00 2026-05-31T10:05:00+00:00

Running Visual Studio 2008 .net 2.0. From the Debug Menu, I select Exceptions and

  • 0

Running Visual Studio 2008 .net 2.0.
From the Debug Menu, I select Exceptions and set it up to break when CLR Exceptions are thrown.

Then I do file new project, select a new console application.

I add the following 2 lines inside of main.

Console.WriteLine(System.Windows.Forms.Application.ExecutablePath);
Console.ReadKey();

When I execute this code I get a FileNotFOundException saying it can’t find \ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.config.

I’m wondering both why this happens and how to prevent it from happening as I would like to leave the break on thrown CLR Exceptions setting on during any testing sessions.

Thanks.

EDIT: I’m aware of the VSHosting system and am ok with the existence of the files and what they are for. I don’t want to turn of hosting. I’m just not sure why a call to Application.ExecutablePath is looking for the config file. I was able to get around it in one spot by changing it to a system.reflection call to get the same value. But then I got the same error in on a “new DevExpress.XtraEditors.ButtonEdit()” call.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T10:05:02+00:00Added an answer on May 31, 2026 at 10:05 am

    The issue was that I didn’t not have an app.config defined in my project and I had the JustMyCode debugging option disabled. So soemthing instead of that call is throwing an exception for the missing app.config and since it was set to throw on exception and not JustMyCode the Visual Studio debugger was catching it and breaking at that point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the following error when running my Visual Studio 2008 ASP.NET project (start
It's possible to develop only for .net 2.0 running Visual Studio 2008? Thanks!
I have CruiseControl.net running Visual Studio (2005/2008 - using devenv.com) as we need to
I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running
I have Visual Studio 2008 running from Windows XP. Our server is Windows 2003
IDE: Visual Studio 2010 .NET 4.0 x64 running on Windows 2008 R2 x64 All
I'm currently running Visual Studio 2008 Standard Edition and one of the items they
I have been running Visual Studio 2008 Team Edition for some time now and
I'm running Visual Studio 2008 SP1, and I'm getting the following error when trying
I'm running Visual Studio 2008 sp1 on Windows 7 Build 7100 32bit. I've never

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.