C# 使用firestorage上载系统时出现问题

C# 使用firestorage上载系统时出现问题,c#,google-cloud-storage,firebase-storage,C#,Google Cloud Storage,Firebase Storage,将文件从winForm上载到firestorage时遇到问题。 上传过程在完成之前已经停止,没有给出任何错误,但只有大小超过10 MB的文件才会出现这种情况,我不知道原因。 这是我的密码 DialogResult result = uploadFile.ShowDialog(); if (result == DialogResult.OK) { FileStream stream = File.Open(file, FileMode.O

将文件从winForm上载到firestorage时遇到问题。 上传过程在完成之前已经停止,没有给出任何错误,但只有大小超过10 MB的文件才会出现这种情况,我不知道原因。 这是我的密码

DialogResult result = uploadFile.ShowDialog();

        if (result == DialogResult.OK)
        {

            FileStream stream = File.Open(file, FileMode.Open);
            var task = new FirebaseStorage(".......com")
            .Child("Anas")
            .Child("12")
            .Child("4")
            .PutAsync(stream);
            task.Progress.ProgressChanged += (s, c) => Console.WriteLine($"Progress: {c.Percentage} %");
            var downloadUrl = await task;

我打赌如果你把它包装在一个try-catch中,你将能够得到实际的错误。我试过了,但没有错误,但它没有上传文件大小大于10兆字节扫描你给我们展示了带有try-catch的代码吗?我添加了一个try,我把上面所有的代码都放在了里面,我使用了Exception with-catch并将其打印出来messagebox(我不知道如何将代码作为注释发布)这是指向.net的第三方端口,如果您有bug,我建议在github上让他们知道。