Exception configuring failed request tracing rule

Mick Lang 1 Reputation point
2021-10-20T05:19:25.94+00:00

142311-image.png
Getting the following error clicking finish on the Add Failed Request Tracing Rule in IIS v10.0.17763.1...

There was an error while performing this operation.

Details:

Exception from HRESULT: 0xC00CEF03

Stripped down to just the offending section, the web.config looks like this...

<?xml version="1.0" encoding="UTF-8"?>  
<configuration>  
  <system.serviceModel>  
    <bindings>  
       <ws2007FederationHttpBinding>  
        <binding name="fred">  
          <security mode="TransportWithMessageCredential">  
            <message establishSecurityContext="false">  
              <tokenRequestParameters>  
                <trust:SecondaryParameters xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">  
                </trust:SecondaryParameters>  
              </tokenRequestParameters>  
            </message>  
          </security>  
        </binding>  
      </ws2007FederationHttpBinding>  
    </bindings>  
  </system.serviceModel>  
</configuration>  

Deleting lines 10 & 11 (the <trust:SecondaryParameters> tags) resolves the issue.

I can't see anything wrong with the XML causing the issue. Is this a bug?

I can confirm we're not experiencing this issue in earlier versions of IIS.

Windows development | Internet Information Services
Developer technologies | .NET | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2021-10-21T03:20:40.84+00:00

    @Mick Lang

    0xC00CEF03 error code translates to WR_E_NSPREFIXWITHEMPTYNSURI which refers to "Writer: It is not allowed to declare a namespace prefix with empty URI"(Reference).

    This error occurs when there is something wrong with the web.config file. It’s probably corrupted or there are incompatible tags and parameters. As a result of this corruption and incompatibility, IIS is not able to read this file. Therefore, it can’t make a change.

    The issue mostly happens after migration because a piece of configuration that works in the older version of IIS (and .NET Framework) probably became unsupported in the newer version.

    Solution for the 0xC00CEF03 error is find what part of the web.config is causing the issue is to remove sections one by one and test, this seems to be the method you are trying.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.