The problem is you used reactive MicrosoftStreamExtensions
class conflict with WindowsRuntimeStreamExtensions
, if you have not used reactive, please try to remove it, if you need to use it, please specific the return type for AsRandomAccessStream
method.
using (Windows.Storage.Streams.IRandomAccessStream imageStream = streamIn.AsRandomAccessStream())