C# windows azure中默认配置文件提供程序的连接字符串应该是什么?
我正在使用system.web.providers为我的windows azure项目中的API实现基本身份验证。这是我使用的默认连接字符串C# windows azure中默认配置文件提供程序的连接字符串应该是什么?,c#,azure,asp.net-mvc-4,asp.net-membership,azure-sql-database,C#,Azure,Asp.net Mvc 4,Asp.net Membership,Azure Sql Database,我正在使用system.web.providers为我的windows azure项目中的API实现基本身份验证。这是我使用的默认连接字符串 <connectionStrings> <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-myProject.Web
<connectionStrings>
<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-myProject.WebRole-20130117071735;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-myProject.WebRole-20130117071735.mdf;MultipleActiveResultSets=True" />
我知道这个错误没有给出任何信息,但这只发生在我设置了基本身份验证的API上,所以我想问题是没有在云上创建.mdf文件
知道我部署到云时连接字符串应该是什么吗?在Visual Studio中,检查.mdf文件的属性。确保构建操作=内容。否则,部署时将无法上载该文件。
{"Message":"An error has occurred.","ExceptionMessage":"The system cannot find the file specified","ExceptionType":"System.ComponentModel.Win32Exception","StackTrace":null}