Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# web.config转换未转换_C#_Asp.net_Visual Studio_Azure_Visual Studio 2017 - Fatal编程技术网

C# web.config转换未转换

C# web.config转换未转换,c#,asp.net,visual-studio,azure,visual-studio-2017,C#,Asp.net,Visual Studio,Azure,Visual Studio 2017,我正在将网站应用程序发布到Azure应用程序服务。我创建了一个QA配置文件,并添加了一个匹配的Web.QA.config文件。以下是该文件的全部内容(包括一些修订): <?xml version="1.0"?> <!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 --> <!-- In case

我正在将网站应用程序发布到Azure应用程序服务。我创建了一个QA配置文件,并添加了一个匹配的
Web.QA.config
文件。以下是该文件的全部内容(包括一些修订):

<?xml version="1.0"?>
<!-- For more information on using app.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<!-- In case configuration is not the root element, replace it with root element in source configuration file -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
  <appSettings>
    <add key="ida:ClientId" value="9a...54e" xdt:Transform="SetAttributes" xdt:Locator="Match(value)" />
    <add key="ida:ClientSecret" value="vuW...z3kY=" xdt:Transform="SetAttributes" xdt:Locator="Match(value)" />
    <add key="ida:PostLogoutRedirectUri" value="https://....azurewebsites.net/" xdt:Transform="SetAttributes" xdt:Locator="Match(value)" />
  </appSettings>
</configuration>

当我使用QA配置文件将站点发布到Azure应用程序服务时,这些值不会被转换


我做错了什么?

您在匹配
而不是


使用
xdt:Locator=“匹配(键)”

ah!现在我觉得自己很傻。当它允许我的时候,我会标记为答案