Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out where my error is coming from?

I have an annoying error that's been popping up, and I don't know where it is coming from. The error is:

Error   31  Unable to copy file "app.config" to "bin\Debug\Framework.Tests.dll.config". Could not find file 'app.config'.   Framework.Tests

The problem is, I don't have a bin\Debug folder anywhere, and it does not say from where it is trying to copy app.config. Double clicking on the error doesn't bring me to any code where it is trying to copy, so that doesn't help me either. So I don't know where I should make the app.config.

How can I find this out?

like image 550
Niek de Klein Avatar asked May 09 '12 22:05

Niek de Klein


People also ask

How do you find the error in react?

Besides, you can use the static function getDerivedStateFromError(error) to update the state and use the render() method to display a fallback UI if an error occurs. An example error boundary component is shown below. After that, you only need to wrap the required component(s) inside the error boundary component.

How do you debug in react?

There are two main ways in which we can use them: By writing the debugger statement in our source code. By clicking on a specific line of the code in the Chrome web browser (or Firefox, Edge, etc.) Developer Tools.


1 Answers

You have added a reference to a file called app.config or Visual Studio did this for you. The file does not exist on the disk, presumably because after adding the reference you later deleted the file.

Search for the missing file in your Solution Explorer, and either delete the reference or create the file.

It is most likely in the root folder of one of your projects, and should have a yellow triangle warning icon showing that the file is missing.

enter image description here

like image 123
Mark Byers Avatar answered Oct 23 '22 01:10

Mark Byers