Rank: Member
Joined: 10/9/2008(UTC) Posts: 45
|
Hi,
We have done the upgrade to 5.5 and applied any hot fixes. and we are still getting this error generated 1 per second. It is filling the event log.
What is the fix for this?
[table id=ctl00_MainContent_gvEvents style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=5 border=0] [tr ][td vAlign=top align=left]5/5/2009 2:14:30 PM[/td][td vAlign=top align=left]System.Xml[/td][td vAlign=top align=left]There is an error in XML document (1, 1).[ at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at BVSoftware.Bvc5.Core.CustomizableBusinessEntityBase.CustomPropertiesFromXml(String data) in C:\source\CommerceMain\WebApp\source\BVSoftware.Bvc5.Core\CustomizableBusinessEntityBase.vb:line 107 ]
Please let me know what we can do.
Thanks,
Mark [/td][/tr][/table]
|
|
|
|
Rank: Member
Joined: 10/9/2008(UTC) Posts: 45
|
Hi,
Anyone having this issue? Marcus, is there something we can change to keep these errors out of the logs?
Thanks,
Mark
|
|
|
|
Rank: Member
Joined: 9/20/2006(UTC) Posts: 92
|
Just comment out line 112 of -- BVSoftware.Bvc5.Core/CustomizableBusinessEntityBase.vb (source) -- and rebuild in the project in VS.net. Code:
'EventLog.LogEvent(ex)
Feel free to contact us if you need any assistance. Wallace Miller -- Narrowpath Design Providing installation, custom development, and design services for BVC5 sites. 760.728.8679 (phone) [email protected]
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
Wallace, Commenting out that line will hide the errors but isn't the preferred solution. The error occurs when a blank database field (no address) is deserialized. Below is an updated version of the function throwing the error that will be in Service Pack 6: Code: Public Function CustomPropertiesFromXml(ByVal data As String) As Boolean Dim result As Boolean = False
Try [b]If (data.Trim().Length > 0) Then[/b] Dim tr As New StringReader(data) Dim xs As New XmlSerializer(_CustomProperties.GetType) _CustomProperties = CType(xs.Deserialize(tr), CustomPropertyCollection) If _CustomProperties IsNot Nothing Then result = True End If [b]End If[/b] Catch ex As Exception 'EventLog.LogEvent(ex) _CustomProperties = New CustomPropertyCollection result = False End Try RaiseEvent CustomPropertyChanged() Return result End Function
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.