In attempting to use the Performance Tools on an ASP.NET website I’m getting various combinations of these errors (depending on what I attempt to do to fix them):
- The web site could not be configured correctly. Configuring ‘\web.config’ failed. Access to the path ‘\web.config’ is denied. – I can make this dissappear by checking-out the web.config file or unsetting the read only attribute
- The web.config file for the site http://localhost:0/ contains information from a previous run. The web.config file was generated, so deleting it should fix the issue. – Why is it using port 0? I can’t find this setting anywhere. A ‘normal’ run uses a specified port, e.g. 4549
- The web.config file \web.config has been changed and backup information was lost. – What?!
Any ideas?
I’m running Visual Studio 2005 with TFS 2005, it’s an ASP.NET 2.0 Web Application Project.
I found a solution to the above errors which allows me to use the sampling profile method but there is another, possibly unrelated problem when I try to use the instrumentation profile method.
As in the original question – just check-out the Web.config or remove the read-only attribute, this fixes error 1.
To fix errors 2 and 3, remove the lines below from your Web.config: