Windows error 0x801311C0, -2146233920

Detailed Error Information

META_E_CA_INVALID_TARGET[1]

Message"Known custom attribute on invalid target."
Comment Known custom attribute on invalid target.

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code4544 (0x11c0)

Questions

2votes
1answer

event declaration and FieldOffsetAttribute using

i have a CLR class which uses the Attribute StructLayout attribte: [StructLayout(LayoutKind::Explicit)] public ref class Matrix4 : System::ComponentModel::INotifyPropertyChanged All fields make use of the FieldOffset attribute. Now i need to add an event, in particular i want to implment the INotifyPropertyChanged interface and hence i need the [FieldOffset(16*sizeof(Real))] virtual event [...] read more
.net
c++-cli
clr
2votes
1answer

in C++/CLI

When I'm trying serialize a class containing this property: [NonSerialized] property System::Collections::ObjectModel::ReadOnlyCollection<String^>^ IgnoredWords I get a compilation error saying: > fatal error C1093: API call 'DefineCustomAttribute' failed '0x801311c0' How do I tell the serializer that I do not want to serialize this property (and, yes, by default it tries to, [...] read more
.net
xml-serialization
c++-cli

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0