I have a fair sized config file in my ASP.NET application that I would like to have access to in my client-side script. Can anyone think of a good way to cause a section of my configuration to be serialized out as JSON and made available as a cacheable URL? This is .NET 3.5 and the config doesn’t have any security issues.
Share
If your referring to the web.config I’m certain you cannot access it via URL. This is a native ASP.Net security feature. You would want to create a custom config in a secure location and read/update it via AJAX using a server-side mechanism such as an IHttpHandler.