Checkout error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 năm cách đây
Please help!

NopCommerce 2.30
Using MS SQL - works with built in compact db.

http://shop.almgrens.org.preview.binero.se/checkout/paymentinfo

At this point pressing Next-button it will go to error-page

http://shop.almgrens.org.preview.binero.se/errorpage.htm?aspxerrorpath=/checkout/paymentinfo

Is there a permission issue?
12 năm cách đây
Hi

Please check your system log for complete error description and post it here.
12 năm cách đây
Hello Tommy and thank's for rapid reply!

Please find the report below...

========================
Log level:   Error
Short message:   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.

Full message:   System.Web.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.Runtime.Serialization.SerializationException: Type 'Nop.Services.Payments.ProcessPaymentRequest' in Assembly 'Nop.Services, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) at System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) at System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) at System.Web.SessionState.SessionStateItemCollection.WriteValueToStreamWithAssert(Object value, BinaryWriter writer) at System.Web.SessionState.SessionStateItemCollection.Serialize(BinaryWriter writer) at System.Web.SessionState.SessionStateUtility.Serialize(SessionStateStoreData item, Stream stream) at System.Web.SessionState.SessionStateUtility.SerializeStoreData(SessionStateStoreData item, Int32 initialStreamSize, Byte[]& buf, Int32& length, Boolean compressionEnabled) at System.Web.SessionState.SqlSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) at System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

IP address:   46.194.181.5

Customer:  Peter Almgren (View)

Page URL:   http://shop.almgrens.org.preview.binero.se/checkout/paymentinfo

Referrer URL:   http://shop.almgrens.org.preview.binero.se/checkout/paymentinfo

Created on:   1/6/2012 7:40:26 PM
========================
12 năm cách đây
Any!?

Reinstalled application and created new samples database using standard theme. Still getting redirected to error page and system log:

"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."

Does error reside in application or hosting server?

Feel free to test at:
http://shop.almgrens.org.preview.binero.se/
12 năm cách đây
nopCommerce 2.00-2.30 doesn't allow session storing in 'StateServer' and 'SQLServer' mode. This bug is fixed in upcoming 2.40. See changeset a8644bd18ab4
12 năm cách đây
Did you change your SessionStateMode  (web.config)?   This error is not an NopC issue.  I recommend you google the err message and look responses in other forums (e.g. http://forums.asp.net/t/1309558.aspx/1 ).

Also, did you ever try running on your local pc?
12 năm cách đây
I need to confess I'm coming from the "Classic ASP" world and .NET understanding is still very limited.
I have not made any changes from downloaded files and application works on local pc (win7, IIS7, SQL Server 2008).

Correct me if I'm wrong but are theese my alternatives...
1/ Wait for release 2.40
2/ Notify hosting provider (being a server issue)
3/ Add statements in web.config

Please be patient with my lack of knowledge.
12 năm cách đây
peal wrote:
Correct me if I'm wrong but are theese my alternatives...
1/ Wait for release 2.40
2/ Notify hosting provider (being a server issue)
3/ Add statements in web.config


1. Yes, you can.
2. No, it's not a server issue, nopCommerce just doesn't support this option yet. I'm not sure that your hosting provider will agree to change it for you (it depends on provider).
3. Yes, you can.
12 năm cách đây
Awaiting release 2.40 may take weeks or months?

Can any advice workaround statements in web.config?
12 năm cách đây
peal wrote:
Awaiting release 2.40 may take weeks or months?

https://www.nopcommerce.com/boards/t/13315/nopcommerce-v240-roadmap.aspx

peal wrote:
Can any advice workaround statements in web.config?

Please see my post above. I would suggest you to apply this changeset and the issue will be fixed (but it requires some developer skills).
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.