HomeHome Product Discus... Product Discus...SmithCartSmithCartSource ERROR SerializationException: Source ERROR SerializationException:
Previous
 
Next
New Post
9/1/2010 5:22 AM
 

After upgrading to 3.5 once the user gets to the ship to page and clicks next the following error comes up!!! Store is completely useless now... Arggh help

Exception Details: System.Web.HttpException: Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SerializationException: Type 'Smith.DNN.Modules.BuyNow.CustomerInfo' in Assembly 'App_SubCode_Smith.BuyNow, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +7736027
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +258
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +111
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) +161
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) +51
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +410
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +134
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1577
[HttpException (0x80004005): Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.]
System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1662
System.Web.SessionState.SessionStateItemCollection.WriteValueToStreamWithAssert(Object value, BinaryWriter writer) +34
System.Web.SessionState.SessionStateItemCollection.Serialize(BinaryWriter writer) +606
System.Web.SessionState.SessionStateUtility.Serialize(SessionStateStoreData item, Stream stream) +239
System.Web.SessionState.SessionStateUtility.SerializeStoreData(SessionStateStoreData item, Int32 initialStreamSize, Byte[]& buf, Int32& length) +72
System.Web.SessionState.OutOfProcSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +87
System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +560
System.Web.SessionState.SessionStateModule.OnEndRequest(Object source, EventArgs eventArgs) +160
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 
New Post
9/1/2010 8:52 AM
 

One of the items added in v3.05 was Serialized Objects for Session State. We added [Serializable] to all the info objects so they can be serialized in a session object on a session state server. This will allow you to run the cart in a web farm without sticky session on the load balancer. Are you running a web farm?

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/1/2010 2:20 PM
 

No Im not running a farm. Its just a simple DNN installation. I sent you the host login via email that you have not replied to yet. The store is obviously unusable right now. Please help with a solution.

 
New Post
9/1/2010 3:04 PM
 

In your web config what do you have for the tag sessionState


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/1/2010 3:10 PM
 

There is nothing. I did a search for the word session and returned nothing, I guess that is the issue. Let me know what to add.

Im running the most up to date DNN

 
New Post
9/1/2010 3:16 PM
 

Try adding the following:

<sessionState
mode="InProc"
cookieless="false"
timeout="300"
/>


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/1/2010 3:20 PM
 

Where do i put this in the we.config file?

 
New Post
9/1/2010 3:41 PM
 

Okay so that worked now the order emails and pages dont work.Once an order is submitted the page resets with all values at 0. Also the email formatting is missing. With Tokens visible rather than replaced.

Email 1.

Thank you for your order.

Your Order Total is :$65.78

Order ID: &nbsp;&nbsp;1

Order Date: &nbsp;&nbsp;09/01/2010 03:34 PM

Shipping Information: Billing Information: wholesaler user

nile roa

asassa , assasa 0620

NZ

1234567

name@myemail.co.nz

Shipping Method:&nbsp;&nbsp;Free wholesaler user

nile roa

asassa , assasa 0620

NZ

Payment Type:&nbsp;&nbsp;Purchase Order (PO) SKU Product Name Quantity Price --> 1003 SQUARE MINCE PIES 20 $0.89 101 DRESSED BLANKS 50 $0.96 --> &nbsp; SubTotal: $65.78 Discount: -$0.00 Shipping: $0.00 Handling: $0.00 Total (incl. VAT): $65.78 VAT included (%): $7.31

Email 2.

Order Confirmation with Special Instructions:
This is priority order please call me when the delivery is underway

Order ID: 1
Order Date: 09/01/2010 03:34 PM

Shipping Information:

Billing Information:

wholesaler user
nile roa
asassa , assasa
0620
NZ
1234567
email@email.co.nz
Shipping Method: Free

wholesaler user
nile roa
asassa , assasa
0620
NZ
Payment Type: Purchase Order (PO)

Product Name

Quantity

Price

SQUARE MINCE PIES

20

$0.89

DRESSED BLANKS

50

$0.96

[SUBTOTALLABEL]

$65.80

[DISCOUNTLABEL]

-$0.00

[SHIPPINGLABEL]

0

[HANDLINGLABEL]

$0.00

Total (incl. VAT):

$74.02

VAT included (%):

$7.31

 
New Post
9/1/2010 4:06 PM
 

Something must have gotten out of sync in your cart build . I recommend you download and install the new cart version 3.06 and do a clean install.


Clean Install Instructions
-----------------------------
Delete the old module and start with a clean install of the module. Please do the following:

  1. From the dnn->host menu uninstall all 6 modules; Smith.BuyNow, Smith.AffliateTracking, Smit.CategoryMenu, Smith.MiniCart, smith.featuredproducts and Smith.MyAccount. Make sure you check the delete files box when you uninstall
  2. Confirm that all stored procs and tables with a prefix of smith in your database are deleted
  3. Confirm that all files in /desktopmodules/smith.buynow are deleted and the folder is removed
  4. Reset iis to release the cache
  5. Install the latest module I sent you today
  6. Configure the cart settings
  7. Add one category, manufacturer and product and test

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/1/2010 6:42 PM
 

Did all those things and reinstalled. Still the same errors. Also see images

  • Unformatted emails.
  • Address of user (unit) from profile is not brought across to form so delivery is impossible for registered users
  • Region is not brought across from profile
  • Cannot change Pay Status on Orders
  • On order confirmation screen when user clicks Close, the screen formats all values to 0
  • Tokens visible on emails and screens.

I have sent you the host login this morning to Scotts address and will send it through again if you need it.

 
 Login to download attachment
New Post
9/1/2010 6:55 PM
 

In the dnn host module definitions screen what version of the cart does it say your running? Can you try resetting iis?

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/1/2010 7:00 PM
 

I have reset the app pool and iis associated. Then cleared the DNN cache and restarted the application.

Please look at the site as you will find the answers quicker that way.

3.6.0

Smith.AffiliateTracking Smith Affiliate Tracking Module 3.6.0 No
Smith.BuyNow Smith Shopping Cart module with streamlined checkout and the ability to process credit cards and echeck payments 3.6.0 Yes
Smith.CategoryMenu Smith Category Menu 3.6.0 No
Smith.FeaturedProducts Smith Featured Products 3.6.0 No
Smith.MiniCart Smith Mini Cart 3.6.0 Yes
Smith.MyAccount Smith My Accounts 3.6.0 Yes
 
New Post
9/1/2010 10:52 PM
 

Just thought I'd add my two cents:

This is the error: App_SubCode_Smith.BuyNow, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

That means that adding the class "SmithBuyNow" to the session is going to crash. It doesn't matter what you do to the server config- the system is very clearly stating the class is NOT serializable, and is not marked as such. Sounds like a version/upgrade issue to me.

 
New Post
9/2/2010 2:12 AM
 

Please see the following post reagarding the email formatting issue:

http://www.smith-consulting.com/forums/forumid/1/postid/2314/scope/posts.aspx#2314

In the cart settings under the confirmation page (after payment) section you need to configure a redirect page so when the user clicks the close button they are redirected to another page. After purhcase unloading the contents of the cart when the user clicks close is by design in case they continue shopping and add new items to their cart the items they just purhased need to be cleared out.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
9/2/2010 3:18 PM
 

We removed the [Serializable] statements on all the info objects to see if that would fix the issue you are experiencing. Please go to the cart downloads page and download cart v3.06. Since you have already installed 3.06 on your portal just copy all the dlls from the zip to your \bin folder and then reset iis and let us know if that fixes it.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartSource ERROR SerializationException: Source ERROR SerializationException: