Skip to main content
Add syntax highlighting hints.
Source Link
Corey Smith
  • 2.7k
  • 1
  • 22
  • 45

You can get the value of the fully patched Sitecore config by updating your Global.asax file to the following:

<%@Application Language='C#' Inherits="Sitecore.Web.Application" %>
<script runat="server">
protected void Application_Start()
{
    System.IO.File.WriteAllText("<website_root>\\App_Data\\sitecore.config", Sitecore.Configuration.Factory.GetConfiguration().OuterXml);
}
</script>
<%@Application Language='C#' Inherits="Sitecore.Web.Application" %>
<script runat="server">
protected void Application_Start()
{
    System.IO.File.WriteAllText("<website_root>\\App_Data\\sitecore.config", Sitecore.Configuration.Factory.GetConfiguration().OuterXml);
}
</script>

This tells the application to write the fully patched Sitecore config to the \App_Data folder of your site's webroot. You can, of course, change this location to one of your choice.

You can get the value of the fully patched Sitecore config by updating your Global.asax file to the following:

<%@Application Language='C#' Inherits="Sitecore.Web.Application" %>
<script runat="server">
protected void Application_Start()
{
    System.IO.File.WriteAllText("<website_root>\\App_Data\\sitecore.config", Sitecore.Configuration.Factory.GetConfiguration().OuterXml);
}
</script>

This tells the application to write the fully patched Sitecore config to the \App_Data folder of your site's webroot. You can, of course, change this location to one of your choice.

You can get the value of the fully patched Sitecore config by updating your Global.asax file to the following:

<%@Application Language='C#' Inherits="Sitecore.Web.Application" %>
<script runat="server">
protected void Application_Start()
{
    System.IO.File.WriteAllText("<website_root>\\App_Data\\sitecore.config", Sitecore.Configuration.Factory.GetConfiguration().OuterXml);
}
</script>

This tells the application to write the fully patched Sitecore config to the \App_Data folder of your site's webroot. You can, of course, change this location to one of your choice.

Source Link

You can get the value of the fully patched Sitecore config by updating your Global.asax file to the following:

<%@Application Language='C#' Inherits="Sitecore.Web.Application" %>
<script runat="server">
protected void Application_Start()
{
    System.IO.File.WriteAllText("<website_root>\\App_Data\\sitecore.config", Sitecore.Configuration.Factory.GetConfiguration().OuterXml);
}
</script>

This tells the application to write the fully patched Sitecore config to the \App_Data folder of your site's webroot. You can, of course, change this location to one of your choice.