Author Topic: File Could not be found  (Read 141 times)

DavidSr

  • Full Member
  • ***
  • Posts: 178
    • View Profile
File Could not be found
« on: April 02, 2025, 10:41:26 PM »
When attempting to build a modified solution I started getting this error:
Error    BC2001    file '\\Snas1\SCADA\SOFTWARE\ADVANCED_HMI1\PurchasedControls\ChartWithLogging_Update\ChartWithLogging.vb' could not be found
It should not be looking for it that location.
What file can I edit to fix this and where is it?
Thank you!

David

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5358
    • View Profile
    • AdvancedHMI
Re: File Could not be found
« Reply #1 on: Today at 01:28:19 AM »
In Solution Explorer, do you have any files with an exclamation mark next to its name?

DavidSr

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: File Could not be found
« Reply #2 on: Today at 07:56:15 AM »
I do not see any. The highlighted file in the image has property values pointing to the incorrect path. If I put the file in the path it is looking for it brings back more errors. The file location it is looking for is on a Synology NAS where I had previously stored the ADVHMI files, I had since created another share and moved all the files to the share but this instance I am dealing with is on the local PC "C" drive  I had copied the built instance to a local drive so perhaps this caused this. It is strange because I have been copying instances of the built solution to other PCs with no issues.
« Last Edit: Today at 08:13:43 AM by DavidSr »
David

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5358
    • View Profile
    • AdvancedHMI
Re: File Could not be found
« Reply #3 on: Today at 09:24:25 AM »
It looks like that file was added to the project as a linked file instead of being embedded as part of the project. You will need to find that file, then add it as a file to the project to replace the linked file