Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Web Gardening.. Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rishi_somshetti
Groupie
Groupie


Joined: 31 January 2007
Location: India
Online Status: Offline
Posts: 84
Posted: 25 January 2011 at 5:16am | IP Logged Quote rishi_somshetti

Jan 25, 2011

We have observed that the current WebMail (asp.net) version is not supporting 'web gardening'. This is surprising considering that the earlier version we could configure web gardening. We are using it for our production as well and it works well.

Due to this limitation we are unable to upgrade. Please provide us immediate solution.

Failed to connect (500 - Internal Server Error)
Server Error in '/WebMail6' Application.
________________________________________
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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 'WebMail.Domain' in Assembly 'WebMail, Version=5.1.4.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.]
   System.Runtime.Serialization.FormatterServ ices.InternalGetSerializableMembers(RuntimeType type) +7736027
   System.Runtime.Serialization.FormatterServ ices.GetSerializableMembers(Type type, StreamingContext context) +258
   System.Runtime.Serialization.Formatters.Bi nary.WriteObjectInfo.InitMemberInfo() +111
   System.Runtime.Serialization.Formatters.Bi nary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +283
   System.Runtime.Serialization.Formatters.Bi nary.WriteObjectInfo.Serialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter) +45
   System.Runtime.Serialization.Formatters.Bi nary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +7634106
   System.Runtime.Serialization.Formatters.Bi nary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +461
   System.Runtime.Serialization.Formatters.Bi nary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +134
   System.Web.Util.AltSerialization.WriteValu eToStream(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.WriteValu eToStream(Object value, BinaryWriter writer) +1662
   System.Web.SessionState.SessionStateItemCo llection.WriteValueToStreamWithAssert(Object value, BinaryWriter writer) +34
   System.Web.SessionState.SessionStateItemCo llection.Serialize(BinaryWriter writer) +606
   System.Web.SessionState.SessionStateUtilit y.Serialize(SessionStateStoreData item, Stream stream) +239
   System.Web.SessionState.SessionStateUtilit y.SerializeStoreData(SessionStateStoreData item, Int32 initialStreamSize, Byte[]& buf, Int32& length) +72
   System.Web.SessionState.OutOfProcSessionSt ateStore.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.W eb.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IEx ecutionStep step, Boolean& completedSynchronously) +75

________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618
Back to Top View rishi_somshetti's Profile Search for other posts by rishi_somshetti
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 25 January 2011 at 5:24am | IP Logged Quote Igor

In App_Code/Domain.cs file, locate the line:

Code:
public class Domain


and add the following line before it:

Code:
[Serializable]


While normally IIS would recompile the code found in App_Code directory automatically, sometimes it doesn't
work, but you can force the recompilation by running compile.bat file found in root WebMail Pro directory.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
rishi_somshetti
Groupie
Groupie


Joined: 31 January 2007
Location: India
Online Status: Offline
Posts: 84
Posted: 25 January 2011 at 8:11am | IP Logged Quote rishi_somshetti

Thank you it worked...!!!
Back to Top View rishi_somshetti's Profile Search for other posts by rishi_somshetti
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide