4

在我的Azure的應用服務我想更新應用程序設置,而是來自VS鍵發佈後不從本地的Web.configAzure不重寫應用程序設置

覆蓋值在Azure中,它看起來像: enter image description here

在結果我的蔚藍的web.config包含本地設置

<connectionStrings> 
    <add name="MainConnectionString" connectionString="ConnectionStringToReplaceByAzure" providerName="System.Data.SqlClient" /> 
    </connectionStrings> 
    <appSettings> 
    <add key="MS_SigningKey" value="Overridden by portal settings" /> 
    </appSettings> 
+0

這是否適用於edmx文件?你有沒有得到這個工作?我也在掙扎。我是否在連接字符串周圍包含引號?在Azure的connString中包含providerName =「System.Data.SqlClient」? #FrustratedIncorporated –

回答

8

Azure的身體從未修改你的web.config文件中的值。相反,Azure應用程序設置將在運行時注入到配置系統中。所以,即使你沒有在web.config中看到它,如果你從你的應用程序中查詢它,你會得到正確的值。

相關問題