Failed to start profiler in VS 2010

After starting the performance wizard, selecting tools, selecting one web project and several C # library projects and enabling profiling the interaction between levels, I get this strange advantage:

Failed to restore configuration file. The file ' ...\web.config.backup.3b2912c9-3849-2724-8317-1a7da3819869 ' cannot be copied to ' ...web.config '. The process cannot access the file ' ...\web.config ' because it is being used by another process.

I should also add that the web application in question is hosted in IIS. Any thoughts?

+4
source share
3 answers

It was the same. what i did was find who keeps my files (did this using the "process explorer" from SysInternal). you need to use the "Find Handle or DLL" - the CTRL + F key combination and place the address, and it will find the corresponding processes.

The manuscript in which my file is stored was the Windows Event Collection Service process, so I killed it and everything returned to normal.

+1
source

I had something similar with web.configs. You say that it is hosted using IIS, is web.config actually in wwwroot (or a subdirectory)?

And I think you are using Windows 7 / Server 2008?

His UAC, if so.

You can enable User Account Management or run any application as an administrator, even if you are an administrator.

Or just copy [don't move!] The files into your “my documents”, do everything with them, and then return them.

In any case, I will try updating with a copy of the files in the My Documents folder to make sure that you have all the privileges you need.

Good luck.

0
source

I came across this while working with VS2012, but found that it was AppFabric on my local development machine, which hosted web.config.

I turned off and stopped services in my local field, and everything was fine.

0
source

Source: https://habr.com/ru/post/1383969/


All Articles