This error message may show up if you try to change an IIS setting: There was an error while performing this operation. Details: Exception from HRESULT: 0xC00CEF03.
It occurs mostly after you migrate your application from one IIS server to another.
0xC00CEF03 error code refers to WR_E_NSPREFIXWITHEMPTYNSURI which means “Writer: cannot use prefix with empty namespace URI” (Reference).
This error occurs when there is an issue with the web.config file. There are probably incompatible tags.
The issue mostly occurs after migration because a piece of configuration that works in the older version of IIS (and .NET Framework) may become unsupported in the newer version.
One way of finding what part of the web.config is causing the issue is to remove sections one by one and test. Here are the steps:
For the application I worked with, the issue caused by the section below.
<tokenRequestParameters>
<trust:SecondaryParameters xmlns:trust=http://docs.oasis-open.org/ws-sx/ws-trust/200512>
...
<trust:Claims Dialect=http://schemas.xmlsoap.org/ws/2005/05/identity xmlns:trust=http://docs.oasis-open.org/ws-sx/ws-trust/200512>
<wsid:ClaimType Uri=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name Optional="true" xmlns:wsid=http://schemas.xmlsoap.org/ws/2005/05/identity/>
<wsid:ClaimType Uri=http://schemas.microsoft.com/ws/2008/06/identity/claims/role Optional="true" xmlns:wsid=http://schemas.xmlsoap.org/ws/2005/05/identity/>
<wsid:ClaimType Uri=http://schemas.wolterskluwerfs.com/ws/2012/09/identity/claims/effectiverootorg xmlns:wsid=http://schemas.xmlsoap.org/ws/2005/05/identity/>
</trust:Claims>
...
</trust:SecondaryParameters>
</tokenRequestParameters>
To solve this issue, I removed;
The code looked like this after the changes:
<tokenRequestParameters>
<SecondaryParameters xmlns:trust=http://docs.oasis-open.org/ws-sx/ws-trust/200512>
...
<trust:Claims Dialect=http://schemas.xmlsoap.org/ws/2005/05/identity xmlns:trust=http://docs.oasis-open.org/ws-sx/ws-trust/200512>
<ClaimType Uri=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name Optional="true" xmlns:wsid=http://schemas.xmlsoap.org/ws/2005/05/identity/>
<ClaimType Uri=http://schemas.microsoft.com/ws/2008/06/identity/claims/role Optional="true" xmlns:wsid=http://schemas.xmlsoap.org/ws/2005/05/identity/>
<ClaimType Uri=http://schemas.wolterskluwerfs.com/ws/2012/09/identity/claims/effectiverootorg xmlns:wsid=http://schemas.xmlsoap.org/ws/2005/05/identity/>
</trust:Claims>
...
</SecondaryParameters>
</tokenRequestParameters>
Note: Please make sure to test your application after making changes to your web.config file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.