Serialization Exception

Author Message
 Posted 7/12/2012 6:27:55 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
Need some help in figuring out what is causing this error (see attachment). It's only happening for a particular query. The query runs fine if I reconfigure the app to directly connect to the database.

-Larry


 ESSerializationError.png (17 views, 124.16 KB)

Tags:
Post #31260
Add to Twitter Add to Facebook
 Posted 7/12/2012 6:34:48 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 11/9/2019 10:21:43 AM
Posts: 2,430, Visits: 23,823
Hi Larry,

Based on the exception, you are using the Enterprise Server, is this correct?

I have not used the Enterprise server yet, but one thing to be sure is that your server and application are loading the correct assemblies.


Edhy Rijo
(Using VB.Net 2019/SQL Server 2017)
Post #31261
Add to Twitter Add to Facebook
 Posted 7/12/2012 8:08:56 AM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
I finally traced down the cause of the problem, although the exception message was not that helpful. I'm using the enterprise server custom serialization and it turns out that I have one field in one table that is a GUID which is apparently not supported by ES customization. Any suggestions on how to work around this? I'd like to stay with custom serialization since it really cuts down on the network traffic.

-Larry
Post #31262
Add to Twitter Add to Facebook
 Posted 7/12/2012 8:13:43 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 11/9/2019 10:21:43 AM
Posts: 2,430, Visits: 23,823
Hi Larry,

I am glad you traced what is causing this issue, unfortunately I will not be able to help you out with more details since I have never used the Enterprise server.  I am sure Trent, Ivan or somebody else using the Enterprise will be able to chime in Unsure


Edhy Rijo
(Using VB.Net 2019/SQL Server 2017)
Post #31263
Add to Twitter Add to Facebook
 Posted 7/12/2012 1:56:51 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: Awaiting Activation
Last Login: 11/13/2019 6:44:06 AM
Posts: 595, Visits: 3,785
Figured it out. Changed the field in the database from uniqueidentifier to binary(16) and placed some custom code in BOMapper to convert it from a byte array to GUID on Get and GUID to byte array on Set. Now that it is a binary field in the database ES custom serialization can handle it and it still appears as a GUID to my Infragistics appointment(Calendar) control.

-Larry
Post #31265
Add to Twitter Add to Facebook
 Posted 7/13/2012 2:55:37 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: 11/9/2019 10:21:43 AM
Posts: 2,430, Visits: 23,823
Hi Larry,
I am happy to hear you figure it out.  Would you mind posting the Get/Set code?


Edhy Rijo
(Using VB.Net 2019/SQL Server 2017)
Post #31267
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.