The XML for my EventReceiver is as follows:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://ift.tt/sQmbje">
<Receivers ListTemplateId="100">
<Receiver>
<Name>MyItemAdding</Name>
<Type>ItemAdding</Type>
<Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
<Class>My.Solution.MyClass.MyClass</Class>
<SequenceNumber>10001</SequenceNumber>
</Receiver>
<Receiver>
<Name>MyItemAdded</Name>
<Type>ItemAdded</Type>
<Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
<Class>My.Solution.MyClass.MyClass</Class>
<SequenceNumber>10001</SequenceNumber>
</Receiver>
</Receivers>
</Elements>
In Visual Studio a warning appears on the third line where it says "100".
The error is as follows:
Warning 1 The 'ListTemplateId' attribute is invalid - The value '100' is invalid according to its datatype 'http://ift.tt/1wTpRNY' - The Enumeration constraint failed. My.Solution\Elements.xml 3 30
What does this warning mean and how can I fix it?

0 commentaires:
Enregistrer un commentaire