tags:

views:

62

answers:

0

I am using a LINQ to XSD Component.

Occasionally I encounter an exception log parsing a valid value pasted as under. [For the same value it runs fine at other times]

   Source: Microsoft.Xml.Schema.Linq
   Message: Failed to set value on the property "CCNumber". 
            Possible reason: The Given Value (1 1 1 1   1 1 1 1   1 1 1 1   1 1 1 1) Violates Restrictions: MaxLength = 16
   Trace:    at Microsoft.Xml.Schema.Linq.XTypedElement.SetElementWithValidation(XName name, Object value, String propertyName, SimpleTypeValidator typeDef)
   at CCInfo_ct.set_CCNumber(String value)

My Questions are : 1. What could be the reason for this erratic behavior ? 2. Has anybody encountered this behavior with LINQ to XSD ? Is there a Resolution/Alternative ?

Thanks in Advance.

[Since LinqToXSD is not supported by Microsoft, we are considering code re-write discarding dependency on LinqToXSD.]