Windows error 0x80028CA0, -2147316576

Detailed Error Information

TYPE_E_TYPEMISMATCH[1]

MessageType mismatch.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode2 (0x002)
NameFACILITY_DISPATCH[2][1]
DescriptionThe source of the error code is a COM Dispatch.[2][1]
Error Code36000 (0x8ca0)

Questions

1vote
1answer

TYPE_E_TYPEMISMATCH changing Metadata Windows Universal App

I want to overwrite the System.Photo.DateTaken value. This is my method: private async void EditMetadata(uint rateNumber, DateTime newDate) { var memStream = new Windows.Storage.Streams.InMemoryRandomAccessStream(); var encoder = await Windows.Graphics.Imaging.BitmapEncoder.CreateForTranscodingAsync(memStream, _decoder); var propertySet = new Windows.Graphics.Imaging.BitmapPropertySet(); var ratingValue = new Windows.Graphics.Imaging.BitmapTypedValue(rateNumber, Windows.Foundation.PropertyType.UInt32); try { var dateValue = new Windows.Graphics.Imaging.BitmapTypedValue(newDate, Windows.Foundation.PropertyType.DateTime); } [...] read more
metadata
windows-8.1
windows-phone-8.1
type-mismatch
win-universal-app

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0