• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

mdomaille
#1 Posted : Tuesday, May 5, 2009 4:00:35 PM(UTC)
mdomaille

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]
mdomaille
#2 Posted : Monday, May 18, 2009 10:28:51 AM(UTC)
mdomaille

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
Narrowpath
#3 Posted : Monday, May 18, 2009 12:24:14 PM(UTC)
Narrowpath

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]
Marcus
#4 Posted : Wednesday, May 20, 2009 9:31:53 AM(UTC)
Marcus

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012