Note that there are some explanatory texts on larger screens.

plurals
  1. POXml comments and Entlib validators returns an error
    primarykey
    data
    text
    <p>When I have a property within a class such as: </p> <pre><code>''' &lt;summary&gt; ''' Customer IP address. ''' &lt;/summary&gt; ''' &lt;remarks&gt; ''' Optional parameter. Required if traffic analysis is enabled. ''' tools provided. ''' Format Specification: IPv4 Addresses only. ''' Maximum length: 15 characters. ''' &lt;/remarks&gt; &lt;ValidatorComposition(CompositionType.And, Ruleset:="TrafficAnalysis")&gt; _ &lt;NotNullValidator(MessageTemplate:="IP address is required for traffic analysis.", Ruleset:="TrafficAnalysis")&gt; _ &lt;StringLengthValidator(7, RangeBoundaryType.Inclusive, 15, RangeBoundaryType.Inclusive, MessageTemplate:="IP address must be between 7 and 15 characters in length.", Ruleset:="TrafficAnalysis")&gt; _ &lt;RegexValidator("^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$", MessageTemplate:="Invalid IP address.", Ruleset:="TrafficAnalysis")&gt; _ Public Property IPAddress() As String Get Return _IPAddress End Get Set(ByVal value As String) _IPAddress = value End Set End Property </code></pre> <p>The .net compiler returns the following warning. </p> <p>XML comment block must immediately precede the language element to which it applies. XML comment will be ignored.</p> <p>Since I have all warning as errors, the project won't compile. Anyone out there who has experienced this issue and knows a fix?</p> <p>The entlib validators are obviously important. I have toyed with moving the validation to the web.config using the entlib validation configuration tool but have not had much success with that and have been able to use the entlib validators the way I have above. </p> <p>Entlib v4.1 and vs 2008. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload