Visual Studio could not find a file question

Oktay Arslan 0 Reputation points
2024-03-04T12:06:14.42+00:00

Hello, I have a winform app with .net framework 3.5. When I try to open a form page having this error

User's image

I can continue development if i click 'Ignore and Continue' but sometimes visual studio is closing. How can i solve this problem.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,686 Reputation points Microsoft External Staff
    2024-03-05T09:04:04.6633333+00:00

    Hello @Oktay Arslan,

    Welcome to Microsoft Q&A forum.

    Please try following methods and let us know if the error disappears.

    1. Update VS 2022 to the latest version.
    2. Search Turn Windows features on or off in Windows Search box, open it, select(turn on) .NET Framework 3.5. Make sure that .NET Framework 3.5 has been installed/turned on. Open VS Installer, Modify, switch to Individual components, make sure that .NET Framework 3.5 development tools component has been selected and installed.
    3. To narrow down this issue, please try to create a new WinForm project which targets .NET Framework 3.5 and check if the same error will appear. If this issue only appears on a specific project, can you confirm if there are any special settings in this project?

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.