After transferring the project from one computer to another, there was a problem with a similar problem . I will simply explain what I discovered and how I fixed it , and you can determine if it matches your problem and solution.
The working computer on which I wrote the application contained the .dll file that my program referenced. After transferring the application to the home computer, the application could no longer find the DLL file that was previously referenced because it was no longer there.
The application is compiled and works even without a referenced resource (DLL file), because the previously compiled assembly (debug folder) contained its own copy of the DLL file and other resources. Simply put, this is an old build assembly that works, not the current application you are working on. That is why this error tends to pause the constructor window and cause an error after the application terminates.
I would like to take a look at the following:
a) In the Solution Explorer section, navigate to the Links folder and right-click the missing node link and select properties . In the properties field, pay attention to the Resource path to which the link is made. Is the resource still on this path?
b) Check the debug folder for the copy of the resource you are looking for. If the resource is there, make a copy and save it to your desktop. If it does not exist , get the file from the original source .
c) In Solution Explorer, right-click Properties and . In the menu that appears, select β Resources β at the top and left of the new window that appears, you will see β Add a resource β using the small down arrow. Press the arrow and select β Add an existing file, β and then go to the file . If you do not see this, you may need to change the file you are viewing with a small drop-down above the "open" and "Cancel" buttons. After the file is located, it should create a new folder in the solution explorer called "resources". Now the file is a permanent part of your application, and not just a link to it.
Josh campbell
source share