Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > intermittent error on cms trial version kentico 5.5r2 .net framework 2.0 View modes: 
User avatar
Member
Member
Willy - 7/27/2011 8:56:47 PM
   
intermittent error on cms trial version kentico 5.5r2 .net framework 2.0
Hi,

1. Random error issue
We are currently testing a site using a trial version. And this few days, we've noticed an intermittent application error showing up. scenarios like logging in to the admin, removing a webpart or even just viewing the homepage.

Are we doing something wrong? we're not making major changes.

By the way, the trial version will end soon and we've not completed the testing and development for another country. Is it possible to extend the expiry date? Any suggestion would be appreciated. We're in the process of acquiring the license.

2. Upgrade to .net framework 4.0
We want to upgrade from 2.0 to 4.0, is there any documentation available about this and will there be big impact?

Willy

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/28/2011 12:42:31 AM
   
RE:intermittent error on cms trial version kentico 5.5r2 .net framework 2.0
Hi,

1) Could you please describe the error - or paste here the exact error message you are getting?

Extended trial - please send us a message to support@kentico.com with this request together with the domain name you are using and we will send you new trial key for another 30 days.

2) You need to use appropriate DLL files and also make some changes in the web.config file to match the .Net version. The DLL files can be copied from BIN folder of new CMS web project installed using the Web installer for given .Net version. Or, you can copy them from the initial installation directory (typically c:\Program Files (x86)\KenticoCMS\5.5R2\Webinstaller\Versions\VS2010\) and there is also web.config file for .Net 4 so you need to reflect the changes into your web.config file.

There is also an option when opening the web project in Visual Studio 2010 - it will ask you whether you want to re-target the framework version.

Moreover, here is an article about conversion from VS2008 to 2010 - http://devnet.kentico.com/Knowledge-Base/Upgrading/Conversion-of-Visual-Studio-2008-project-based-on-.aspx.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Willy - 8/1/2011 8:37:20 PM
   
RE:intermittent error on cms trial version kentico 5.5r2 .net framework 2.0
Hi,

we will send the request to extend the trial. meanwhile below is the error I just encountered;

######################################################
Server Error in '/' Application.
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 12: <asp:PlaceHolder runat="server" ID="plcManagers">
Line 13: <cms:CMSPortalManager ID="manPortal" runat="server" EnableViewState="false" />
Line 14: <asp:ScriptManager ID="manScript" runat="server" ScriptMode="Release" EnableViewState="false" />
Line 15: </asp:PlaceHolder>
Line 16: <cms:CMSPagePlaceholder ID="plc" runat="server" />


Source File: c:\HKTest\KenticoCMSTestHK\CMSPages\PortalTemplate.aspx Line: 14

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Stack Trace:

[FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +525
System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +19
System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +315
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +208
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +1171
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +146
System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +103
System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +448
System.Web.UI.ScriptManager..ctor() +30
ASP.cmspages_portaltemplate_aspx.__BuildControlmanScript() in c:\HKTest\KenticoCMSTestHK\CMSPages\PortalTemplate.aspx:14
ASP.cmspages_portaltemplate_aspx.__BuildControlplcManagers() in c:\HKTest\KenticoCMSTestHK\CMSPages\PortalTemplate.aspx:12
ASP.cmspages_portaltemplate_aspx.__BuildControlform1() in c:\HKTest\KenticoCMSTestHK\CMSPages\PortalTemplate.aspx:11
ASP.cmspages_portaltemplate_aspx.__BuildControlTree(cmspages_portaltemplate_aspx __ctrl) in c:\HKTest\KenticoCMSTestHK\CMSPages\PortalTemplate.aspx:1
ASP.cmspages_portaltemplate_aspx.FrameworkInitialize() in c:\HKTest\KenticoCMSTestHK\CMSPages\PortalTemplate.aspx.cs:912308
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +72
System.Web.UI.Page.ProcessRequest() +269
System.Web.UI.Page.ProcessRequest(HttpContext context) +167
ASP.cmspages_portaltemplate_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\cb79dbc3\69b2b72c\App_Web_2yayzfbz.12.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
######################################################

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/3/2011 1:26:44 AM
   
RE:intermittent error on cms trial version kentico 5.5r2 .net framework 2.0
Hi,

In the error you can see that some Microsoft assembly cannot be loaded. I did some Google research and found for example this forum:

http://forums.asp.net/t/1182019.aspx/1?Could+not+load+file+or+assembly+Microsoft+Practices+EnterpriseLibrary+Data+Version+3+1+0+0+Culture+neutral+PublicKeyToken+b03f5f7f11d50a3a+or+one+of+its+dependencies

or

http://vstoolsforum.com/blogs/stevegray/archive/2008/01/18/could-not-load-file-or-assembly-microsoft-practices-enterpriselibrary-data.aspx

Have you made any customizations in the trial version? Added any references or third party things?

Best regards,
Juraj Ondrus