Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

A NullRefereceException in Blob's UploadFromStreamAsync() Func #517

Closed
@duanjian

Description

@duanjian

hello, when i use

IFormFile's file.OpenReadStream() get the stream

then use

var bBlob = _container.GetBlockBlobReference(path);
await bBlob.UploadFromStreamAsync(streamInput);
and got a NullReferenceException
the StackTrace is 

   在 Microsoft.WindowsAzure.Storage.Core.Util.StorageAsyncResult`1.End() 位置 c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Util\StorageAsyncResult.cs:行号 77
   在 Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.<>c__DisplayClass4.<CreateCallbackVoid>b__3(IAsyncResult ar) 位置 c:\Program Files (x86)\Jenkins\workspace\release_dotnet_master\Lib\ClassLibraryCommon\Core\Util\AsyncExtensions.cs:行号 115

   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   在 Schubert.Framework.FileSystem.AzureBlobFileStorage.<CreateBlobFromStream>d__5.MoveNext() 位置 C:\Users\duan\Source\Workspaces\Labijie\ProgrameFramework\Schubert_V1\src\Framework\Schubert.Framework.Azure\FileSystem\AzureBlobFileStorage.cs:行号 46

   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   在 Schubert.Framework.FileSystem.AzureBlobFileStorage.<CreateFileAsync>d__10.MoveNext() 位置 C:\Users\duan\Source\Workspaces\Labijie\ProgrameFramework\Schubert_V1\src\Framework\Schubert.Framework.Azure\FileSystem\AzureBlobFileStorage.cs:行号 118

   在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

in bata8 has no this problem , thank u

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions