Windows 10: Error in Visual Studio C# path file

Discus and support Error in Visual Studio C# path file in Windows 10 BSOD Crashes and Debugging to solve the problem; Hell : This is mY Error See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by عبدالله2410, Aug 12, 2018.

  1. Error in Visual Studio C# path file


    Hell :


    This is mY Error


    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.IO.FileNotFoundException: C:\Users\AbduAllah\documents\visual studio 2015\Projects\TestRun\TestRun\bin\Debug\PersonData.exe
    at System.Drawing.Icon.ExtractAssociatedIcon(String filePath, Int32 index)
    at System.Drawing.Icon.ExtractAssociatedIcon(String filePath)
    at PersonData.frmPerson.frmPerson_Load(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3131.0 built by: NET472REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    PersonData
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Test%20App/Test%20Run/PersonData.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3056.0 built by: NET472REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.



    and This is my Code:

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Diagnostics;
    using System.Threading;
    using System.Runtime.InteropServices;


    namespace TestRun
    {
    public partial class frmRun : Form
    {
    public frmRun()
    {
    InitializeComponent();
    }



    private void btnExit_Click(object sender, EventArgs e)
    {
    this.Close();
    }

    private void btnPersonData_Click(object sender, EventArgs e)
    {
    Process.Start(@"D:\Test App\Test Run\PersonData.exe");
    }
    }
    }



    I want to Run an Exe file from a different Directory but I get unhandled exception has occurred in your application .net framework c#

    :)
     
    عبدالله2410, Aug 12, 2018
    #1
  2. aamarlin Win User

    Visual Studio 2017 C# File Handling

    Compiling a C# program using StreamReader and StreamWriter variables on the command line works fine. On Visual Studio 2017 C# when I try to close() a file, I get an error on the file.close() code. The intelliscense for the StreamReader or StreamWriter
    has no listing for CLOSE. The closest I can get is disposing the file.
     
    aamarlin, Aug 12, 2018
    #2
  3. Visual C++ Redistributable for Visual Studio 2015 x64 Installation Failure

    I suggest you to uninstall any existing Microsoft Visual C++ Redistributable Package and install the latest Microsoft Visual C++ 2010 Redistributable Package to check if it helps.

    Follow the below steps:

    Step 1: Uninstall the exiting Microsoft Visual C++.

    a) Press Windows key + x key and select
    Programs and Features
    .

    b) Right click on the Microsoft Visual C++ and uninstall it.

    Step 2: Download the latest Microsoft Visual C++ and install it.

    Download Visual C++ Redistributable for Visual Studio 2015
     
    Andre Da Costa, Aug 12, 2018
    #3
  4. Linney Win User

    Error in Visual Studio C# path file

    visual studio

    If you start uninstalling bits and pieces then some parts of the program, or older programs, may fail to work properly. Did you select all these so called extras or were they installed automatically. If the latter then you may need them?

    Visual Studio 2015 System Requirements

    Visual Studio 2013 System Requirements

    "In Visual Studio 2015, Visual C++ is not installed by default. When installing, be sure to choose Custom installation and then choose the C++ components you require. Or, if Visual Studio is already installed, choose File | New | Project | C++ and you will
    be prompted to install the necessary components."

    Visual C++ in Visual Studio 2015

    Visual C++ in Visual Studio 2015

    Make the Visual Studio installer more customizable

    https://visualstudio.uservoice.com/...the-visual-studio-installer-more-customizable
     
    Linney, Aug 12, 2018
    #4
Thema:

Error in Visual Studio C# path file

Loading...
  1. Error in Visual Studio C# path file - Similar Threads - Error Visual Studio

  2. Visual Studio Code C++ Syntax Highlighting Include Path

    in Windows 10 Drivers and Hardware
    Visual Studio Code C++ Syntax Highlighting Include Path: I'm writing a project in C++ using VSCode and want to include certain headers in my files. Normally I'd be able to do this, but the headers I need are in a separate folder path than the one I'm working on, like this:PROJECT FOLDER- src - vendor - "resource.h" - tests -...
  3. Visual Studio Code C++ Syntax Highlighting Include Path

    in Windows 10 Gaming
    Visual Studio Code C++ Syntax Highlighting Include Path: I'm writing a project in C++ using VSCode and want to include certain headers in my files. Normally I'd be able to do this, but the headers I need are in a separate folder path than the one I'm working on, like this:PROJECT FOLDER- src - vendor - "resource.h" - tests -...
  4. Visual Studio Code C++ Syntax Highlighting Include Path

    in Windows 10 Software and Apps
    Visual Studio Code C++ Syntax Highlighting Include Path: I'm writing a project in C++ using VSCode and want to include certain headers in my files. Normally I'd be able to do this, but the headers I need are in a separate folder path than the one I'm working on, like this:PROJECT FOLDER- src - vendor - "resource.h" - tests -...
  5. error in visual studio with c# project

    in Windows 10 Gaming
    error in visual studio with c# project: ive been trying to make a program but vs Visual StudioDoesnt let me codingProof: I AM NOT GERMAN I JUST SET THE LANGUAGE TO LEARN GERMANi dont know how to fix itthis discuss is for everyone so everyone can tell how to fix it...
  6. error in visual studio with c# project

    in Windows 10 Software and Apps
    error in visual studio with c# project: ive been trying to make a program but vs Visual StudioDoesnt let me codingProof: I AM NOT GERMAN I JUST SET THE LANGUAGE TO LEARN GERMANi dont know how to fix itthis discuss is for everyone so everyone can tell how to fix it...
  7. Visual Studio Code Terminal path

    in Windows 10 Gaming
    Visual Studio Code Terminal path: Hi,I am a beginner trying to learn GO language and I am using Visual Studio Code. I just noticed that when I load another file the terminal path section below where you write the code does not change, so when I run the .go file it will give an error, the path is still the...
  8. Visual Studio Code Terminal path

    in Windows 10 Software and Apps
    Visual Studio Code Terminal path: Hi,I am a beginner trying to learn GO language and I am using Visual Studio Code. I just noticed that when I load another file the terminal path section below where you write the code does not change, so when I run the .go file it will give an error, the path is still the...
  9. Visual C++ Redistributable for Visual Studio 2012 error 0x8007015e

    in Windows 10 Installation and Upgrade
    Visual C++ Redistributable for Visual Studio 2012 error 0x8007015e: Hi, Running the installer of the latest version (from https://www.microsoft.com/en-us/download/details.aspx?id=30679) of the redistributable always results in the error 0x8007015e. The installer tells me to restart the computer, which I've done several times to no avail....
  10. microsoft visual studio c++

    in Windows 10 Drivers and Hardware
    microsoft visual studio c++: why i have so much microsoft visual studio c++ can i uninstall them[IMG] https://answers.microsoft.com/en-us/windows/forum/all/microsoft-visual-studio-c/aadbad4b-4e91-4086-a546-b7f906b2f387

Users found this page by searching for:

  1. file path error in c#

    ,
  2. error visual studio 2017 read xml from c:\path