nfig\customerrors-debug.config> <Section>system.web/customErrors</Section> </WebConfigReplacementFiles></ItemGroup> The Fix I realised whilst the deployment project was set to copy the output to a local IIS folder I???d also done some debugging in situ i.e. in the project???s own folder.