Could not load file or assembly.the system cannot find file specified

I’m facing issue whenever try to save file.
please find attached screenshot

t .

Hi ,
seems like it’s a dependency error, try doing the below steps,

  1. Take a backup of your existing project.json file
  2. delete it from the project file
  3. open main.XAML again, this will restore the dependencies


this solution not works for this type of error.

project.json file is not open in notepad++


You should be able to from file explorer, right-click and open with notepad

Hi @Priyanka_Jadhav1

Try to the take back up of the project.json file out side the project scope and

Open the xaml again!


I’ve selecting C# language at the time of new project creation. that’s why this error occurs. once I changed language C# to VB then no error found.

Thanks .

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.