I recently renamed my root TFS folder from D:\TFS\systemstfs
to D:\TFS\sys
because one of the project's paths was too long for Windows. Now, when I attempt to run a different project (D:\TFS\sys\companydomain.com\Dev\Flowers\wsBusinessLayer) in VS2013 using IIS Express (Project URL http://localhost:59729/Flowers/wsBusinessLayer/) I get the following error message in the browser:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.Module - IIS Web Core
Notification - BeginRequest
Error Code - 0x80070003
Config Error - Cannot read configuration file
Config File - \?\D:\TFS\systemstfs\companydomain.com\Dev\Flowers\web.config
Requested URL - http://localhost:59729/Flowers/wsBusinessLayer/InformationServices.asmx
Physical Path - D:\TFS\sys\companydomain.com\Dev\Flowers\wsBusinessLayer\InformationServices.asmx
(emphasis mine, D: is the second HDD on my machine, not a network share)
It's clear to me what the problem is (the config file path is wrong) but I have no idea how to fix it. I have tried:
But have had no luck. Has anyone come across this before?
Here is another possible solution that doesn't involve fishing for the applicationhost.config
file:
In my case I also needed to change authentication mode which can be done via: