Hi guys, using TableLogger.cs to record conversation history in the azure table repository. At first, the fire on my bot emulator will work smoothly, but after you stop it and try again, it will encounter a conflict error with a storageexception error.
TableLogger.cs: 
Internal exception: 
im confused, error 409 occurs if the table already exists, what is the purpose of the createifnotexists method if it cannot handle such a case? how can i solve this? thanks
im, using this code on my global.asax, in order to save both bot files and the conversation history of the user and bot, he uses the implementation of tablelogger.cs.
Global Asax:
var tableName = ConfigurationManager.AppSettings["TableName"].ToString(); var account = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString); //Azure StateData Conversation.UpdateContainer( builder => { //azure botdata builder.RegisterModule(new AzureModule(Assembly.GetExecutingAssembly())); var store = new TableBotDataStore(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString); builder.Register(c => store) .Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore) .AsSelf() .SingleInstance(); //azure conversation history account.CreateCloudTableClient().GetTableReference(tableName).DeleteIfExists(); builder.RegisterModule(new TableLoggerModule(account, tableName)); });
c # azure-table-storage botframework
anonymous1110
source share