Skip to main content
Updated with actual comment
Source Link
Richard Seal
  • 20.8k
  • 5
  • 44
  • 79

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
    <!-- 
 There is a commentFixes: aboutMissing Sitecore.Commerce.Connect licenses message in Content Editor - kb article 852031
    Link: https://kb.sitecore.net/articles/852031

    If you do not have keys for the patchSitecore.Commerce.Connect or Sitecore.Commerce.ConnectPartner modules in your license file, herethe following message may be displayed above the "Quick info" section when opening the Content Editor:

        You require one of the following licenses to use the Sitecore Commerce Connect module.
        "Sitecore.Commerce.Connect" or "Sitecore.Commerce.ConnectPartner"

    These license keys are not included by default.
    -->
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce">
                    <patch:delete />
                </processor>
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
    <!-- There is a comment about the patch file here -->
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce">
                    <patch:delete />
                </processor>
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
    <!-- 
    Fixes: Missing Sitecore.Commerce.Connect licenses message in Content Editor - kb article 852031
    Link: https://kb.sitecore.net/articles/852031

    If you do not have keys for the Sitecore.Commerce.Connect or Sitecore.Commerce.ConnectPartner modules in your license file, the following message may be displayed above the "Quick info" section when opening the Content Editor:

        You require one of the following licenses to use the Sitecore Commerce Connect module.
        "Sitecore.Commerce.Connect" or "Sitecore.Commerce.ConnectPartner"

    These license keys are not included by default.
    -->
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce">
                    <patch:delete />
                </processor>
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!

deleted 14 characters in body
Source Link
Richard Seal
  • 20.8k
  • 5
  • 44
  • 79

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
    <!-- There is a comment about the patch file here -->
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor patch:delete="processor[@type='Sitecoretype="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce']"Commerce">
 type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce"                  <patch:delete />
                </processor>
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor patch:delete="processor[@type='Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce']" type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce" />
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
    <!-- There is a comment about the patch file here -->
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce">
                    <patch:delete />
                </processor>
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!

Source Link
Richard Seal
  • 20.8k
  • 5
  • 44
  • 79

Error when loading config: Reader in incorrect state

I have an include file to remove the annoying Commerce License Warning on 8.1 update 3. But the patch file fails to load in. The log files show the following error:

"860 10:07:58 ERROR Could not load configuration file: [file location]: System.Exception: Reader is in incorrect state"

This is the patch file:

<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
    <sitecore>
        <pipelines>
            <getContentEditorWarnings>
                <processor patch:delete="processor[@type='Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce']" type="Sitecore.Commerce.Pipelines.ContentEditorLicenseWarning, Sitecore.Commerce" />
            </getContentEditorWarnings>
        </pipelines>
    </sitecore>
</configuration>

A more annoying aspect is that on my local dev environment this patch files works fine. But when deployed it does not!