Web設定で以下の接続文字列があり、Visual Studioで正常に動作しています。Azureアプリケーションサービスで使用しているLocalDB
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-MyPortal-20170627104450.mdf;Initial Catalog=aspnet-MyPortal-20170627104450;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
Azure AppサービスとAzure ADを使用して、自分のASP.NET MVCアプリケーションをAzureに移植しようとしました。私は、エラーの下に取得していますAttachDbFilename=\App_Data\aspnet-MyPortal-20170620051631.mdf
以下のようにAttachDbFilename属性を変更:
Invalid value for key 'attachdbfilename'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid value for key 'attachdbfilename'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
のApp Dataフォルダは、MDFファイルが含まれていません。どのように私はWeb設定の接続文字列でそれを参照するのですか?
Azure WebアプリケーションがAzure ADで認証されるためのサンプルプログラムはありますか?
あなたは '置き換えている理由の特定の理由がある|' App_Dataに\ 'で' | DataDirectoryの? – pijemcolu