locked
Visual Studio Break Mode RRS feed

  • Question

  • User1247532551 posted

    Hello to evereyone, i am following courses on plural sight but i ran into a problem and cannot get past this, so i wanna thank everyone who will help me with this.

    An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.
    Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

    This happens when i create through the terminal and also when i create a project in Visual Studio it works fine but after 1-2 days when i open the project this error comes.
    The error comes after i try to debugg 

    Friday, November 8, 2019 10:09 AM

All replies

  • User288213138 posted

    Hi Aowek,

    An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.
    Could not load file or assembly 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies

    In your project, did you reference System.Runtime?

    You can right click on the References, then look for the System.Runtime and select it In your project.

    and you can also refer to this link about similar error. you can confirm the working directory is either empty or equal to the bin\debug directory and check dependencies.

    https://stackoverflow.com/a/9729835

    Best regards,

    Sam

    Monday, November 11, 2019 3:22 AM