static void AddNew() { string filePath = @"D:\KP097R_R206_18_1CONV.mdb"; Stream file = new FileStream(filePath, FileMode.Open); var dict = new DictionaryInfo { // Dictionary_id =, Category_id = 1, Description = "Тестовый словарь", FriendlyName = "Словарь1", FileName = "KP097R_R206_18_1CONV.mdb", Action = ActionEnum.AddDict, SenderLogin = "******" }; FileUploadClient client = new FileUploadClient(); Thread.Sleep(1000); client.Open(); try { client.Upload(dict, file); } catch (Exception ex) { Console.WriteLine(ex); Console.ReadKey(); } client.Close(); }