Xdt: Conversion does not work in URI section in web.config

I am considering setting up my asp.net project to support multiple configurations (Debug, Release). I was able to successfully modify the Web.Debug.config file to correctly convert various elements into a regular web.config file. IE, I added the following section and it works correctly:

  <location path="images" xdt:Transform="Insert">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>

However, I am having problems converting the URI element. When I add this:

  <uri xdt:Transform="Insert">
    <idn enabled="All" />
    <iriParsing enabled="true" />
  </uri>

The following warning message appears: "The attribute http://schemas.microsoft.com/XML-Document-Transform:Transform 'is not declared. "

URI, xdt: Transform xdt ( , ). URI

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

- , ?

.

+4

All Articles