Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.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# windows azure中默认配置文件提供程序的连接字符串应该是什么?_C#_Azure_Asp.net Mvc 4_Asp.net Membership_Azure Sql Database - Fatal编程技术网

C# windows azure中默认配置文件提供程序的连接字符串应该是什么?

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

我正在使用system.web.providers为我的windows azure项目中的API实现基本身份验证。这是我使用的默认连接字符串

 <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}