I am trying to move assembly redirects from web.config to an external file. The reason for this is because I want to keep the forwarding binding in one place and use it for both debugging and production configurations.
This is a kind of work, but I'm struggling to figure out the relative paths.
<configuration> <linkedConfiguration href="file://c:\data\web.runtime.config"/> <linkedConfiguration href="file://web.runtime.config"/> <linkedConfiguration href="file://..\web.runtime.config"/> <linkedConfiguration href="file://~/web.runtime.config"/> </configuration>
I want to save web.runtime.config in the same folder as the rest of the web application. Can I specify a relative path in a linkedConfiguration element?
Additional information: I tested it with IIS Express and ASP MVC in VS 2015. When checking access to files using the SysInternals Process Monitor relative patches, relative paths seem to be resolved to \\web.runtime.config (invalid network path ), whereas when using the absolute path there is no leading \\ .
source share