我使用Azure Table中存储保存数据。我要创建的方法,蔚蓝的功能。当我在本地调试,它做工精细。当蔚蓝的功能添加它,我得到异常错误
未找到方法:“布尔Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists。
CloudTableClient tableClient = cloudStorageAccount.CreateCloudTableClient();
if (tableClient != null)
{
CloudTable table = tableClient.GetTableReference(reference);
table.CreateIfNotExists();
TableOperation insertOperation = TableOperation.Insert(entity);
table.Execute(insertOperation);
return true;
}
而WindowsAzure.Storage包的配置,
<package id="WindowsAzure.Storage" version="7.2.1" targetFramework="net461" />
更新的NuGet到WindowsAzure.Storage 9.3.3 https://www.nuget.org/packages/WindowsAzure.Storage/然后发布你的函数它应该工作,确保连接字符串中的应用程序设置进行配置。