Installation and deployment
Version 7.x > Installation and deployment > Kentico 7 + Windows Server AppFabric View modes: 
User avatar
Member
Member
jukkausb-mail - 2/26/2013 9:43:41 AM
   
Kentico 7 + Windows Server AppFabric
Hello support team.

I'm trying to integrate Kentico with Windows Server AppFabric Cache Service.
I installed Cache service and tested it in combination with standard ASP.NET application.

Then I reflected the same changes on Kentico web site and got the following error:

----------------------------------------------------------------
The constructor with parameters (SerializationInfo, StreamingContext) is not found in ISerializable type 'CMS.SettingsProvider.BaseInfo'.
----------------------------------------------------------------

After that I installed Kentico as Azure project, changed web.config to contain proper dataChacheClient references, enabled AppFabric session state provider and run CMSAzure project using Compute Emulator.

And then I got the same error:
----------------------------------------------------------------
The constructor with parameters (SerializationInfo, StreamingContext) is not found in ISerializable type 'CMS.SettingsProvider.BaseInfo'.
----------------------------------------------------------------

In both cases my distributed cache service goes to throttled state.
I tried to apply different cache sizes (up to 2 Gb).
But it didn't help.

Can anyone suggest what may be wrong?

User avatar
Member
Member
jukkausb-mail - 2/26/2013 9:44:14 AM
   
RE:Kentico 7 + Windows Server AppFabric
Here is stack trace



Server Error in '/' Application.
--------------------------------------------------------------------------------


The constructor with parameters (SerializationInfo, StreamingContext) is not found in ISerializable type 'CMS.SettingsProvider.BaseInfo'.
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.Runtime.Serialization.SerializationException: The constructor with parameters (SerializationInfo, StreamingContext) is not found in ISerializable type 'CMS.SettingsProvider.BaseInfo'.

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: The constructor with parameters (SerializationInfo, StreamingContext) is not found in ISerializable type 'CMS.SettingsProvider.BaseInfo'.]
System.Runtime.Serialization.ClassDataContractCriticalHelper.GetISerializableConstructor() +2499771
System.Runtime.Serialization.ClassDataContract.RequiresMemberAccessForRead(SecurityException securityException) +182
System.Runtime.Serialization.ClassDataContract.RequiresMemberAccessForRead(SecurityException securityException) +347
System.Runtime.Serialization.ClassDataContract.RequiresMemberAccessForRead(SecurityException securityException) +347
System.Runtime.Serialization.ClassDataContract.RequiresMemberAccessForRead(SecurityException securityException) +347
System.Runtime.Serialization.ClassDataContract.RequiresMemberAccessForRead(SecurityException securityException) +347
System.Runtime.Serialization.ClassDataContract.RequiresMemberAccessForRead(SecurityException securityException) +347
System.Runtime.Serialization.CriticalHelper.GenerateClassReader(ClassDataContract classContract) +95
System.Runtime.Serialization.XmlFormatReaderGenerator.GenerateClassReader(ClassDataContract classContract) +229
System.Runtime.Serialization.ClassDataContract.get_XmlFormatReaderDelegate() +258
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context) +78
System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserializeInSharedTypeMode(XmlReaderDelegator xmlReader, Int32 declaredTypeID, Type declaredType, String name, String ns) +542
ReadArrayOfanyTypeFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract ) +572
System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context) +161
System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserializeInSharedTypeMode(XmlReaderDelegator xmlReader, Int32 declaredTypeID, Type declaredType, String name, String ns) +542
ReadSerializableSessionStateStoreDataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] ) +762
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context) +108
System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserializeInSharedTypeMode(XmlReaderDelegator xmlReader, Int32 declaredTypeID, Type declaredType, String name, String ns) +542
System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, String name, String ns) +109
System.Runtime.Serialization.NetDataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) +172
System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver) +628
System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader) +128
Microsoft.ApplicationServer.Caching.Utility.Deserialize(Byte[][] buffers, Boolean checkTypeToLoad) +510
Microsoft.ApplicationServer.Caching.RoutingClient.SendMsgAndWait(RequestBody reqMsg) +693
Microsoft.ApplicationServer.Caching.DataCache.SendReceive(RequestBody reqMsg) +171
Microsoft.ApplicationServer.Caching.DataCache.InternalGetAndLock(String key, TimeSpan timeout, DataCacheLockHandle& lockHandle, String region, Boolean lockKey) +197
Microsoft.ApplicationServer.Caching.DataCache.GetAndLock(String key, TimeSpan timeout, DataCacheLockHandle& lockHandle) +101
Microsoft.Web.DistributedCache.<>c__DisplayClass31`1.<PerformCacheOperation>b__30() +19
Microsoft.Web.DistributedCache.DataCacheRetryWrapper.PerformCacheOperation(Action action) +66
Microsoft.Web.DistributedCache.DataCacheForwarderBase.GetAndLock(String key, TimeSpan timeout, DataCacheLockHandle& lockHandle) +199
Microsoft.Web.DistributedCache.BlobBasedSessionStoreProvider.GetItem(HttpContextBase context, String id, Boolean acquireWriteLock, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actions) +209
Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider.GetItemExclusive(HttpContext context, String id, Boolean& locked, TimeSpan& lockAge, Object& lockId, SessionStateActions& actions) +125
System.Web.SessionState.SessionStateModule.GetSessionStateItem() +178
System.Web.SessionState.SessionStateModule.PollLockedSessionCallback(Object state) +299

[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.SessionState.SessionStateModule.EndAcquireState(IAsyncResult ar) +12678104
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +166




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/26/2013 10:53:59 AM
   
RE:Kentico 7 + Windows Server AppFabric
Hi,


What is the exact version of the CMS you are using? There was, regrettably, a bug which was already fixed. I would like to recommend downloading the latest hotfix and when applying it, please select the setup files to be updated as well. I am sorry for this inconvenience.

Best regards,
Juraj Ondrus

User avatar
Member
Member
vasu - 7/2/2013 5:44:05 AM
   
RE:Kentico 7 + Windows Server AppFabric
Hi Juraj Ondrus,

I too facing the same issue. I am using Kentico CMS 7.0.4640 with Azure.

Can I fix this issue with out applying any hotfix?.

Please suggest me.

Thanks
Vasu

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/2/2013 9:02:34 AM
   
RE:Kentico 7 + Windows Server AppFabric
Hi,

I would recommend applying hotfix so we can exclude already known and fixed bugs.

Best regards,
Juraj Ondrus

User avatar
Member
Member
vasu - 7/6/2013 10:57:22 AM
   
RE:Kentico 7 + Windows Server AppFabric
Hi,

Thanks for your reply.

I have applied hotfix successfully and resolved Windows Server AppFabric problem.

The constructor with parameters (SerializationInfo, StreamingContext) is not found in ISerializable type 'CMS.SettingsProvider.BaseInfo'.

Thanks
Vasu