Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Error after updating to latest hot fix View modes: 
User avatar
Member
Member
bolbort-ashleyhomestore - 10/24/2011 11:14:09 AM
   
Error after updating to latest hot fix
I updated from HotFix_55R2_30_net35 to HotFix_55R2_44_net35 and now i am recieving error when viewing my webpage.


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

Could not load file or assembly 'CMS.GlobalEventHelper, Version=5.5.4311.99, Culture=neutral, PublicKeyToken=834b12a258f213f9' 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 'CMS.GlobalEventHelper, Version=5.5.4311.99, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:


Line 211: if (RequestHelper.IsWindowsAuthentication() && UserInfoProvider.IsAuthenticated())
Line 212: {
Line 213: UserInfo currentUser = CMSContext.CurrentUser;
Line 214: if (!currentUser.IsPublic())
Line 215: {


Source File: c:\inetpub\wwwroot\App_Code\Global.asax.cs Line: 213

Assembly Load Trace: The following information can be helpful to determine why the assembly 'CMS.GlobalEventHelper, Version=5.5.4311.99, Culture=neutral, PublicKeyToken=834b12a258f213f9' 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 'CMS.GlobalEventHelper, Version=5.5.4311.99, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
CMS.SiteProvider.UserInfoProvider.AuthenticateWindowsUser(String userName, String siteName, String[] roles) +0
CMS.CMSHelper.CMSContext.GetCurrentUser(Boolean& loadUserData) +402
CMS.CMSHelper.CMSContext.get_CurrentUser() +24
Global.Session_Start(Object sender, EventArgs e) in c:\inetpub\wwwroot\App_Code\Global.asax.cs:213
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +11165628
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +366
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1281
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +85
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4961; ASP.NET Version:2.0.50727.4955

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/24/2011 10:21:37 PM
   
RE:Error after updating to latest hot fix
Hi,

Could you please check and confirm that all the DLL files from the hotfix package were correctly copied over the old files and the old were overwritten? Could you please check the same with other files from the package? I would like to ask you to copy the files from the hotfix package again to be sure everything was correctly overwritten.

Best regards,
Juraj Ondrus

User avatar
Member
Member
bolbort-ashleyhomestore - 10/25/2011 8:52:32 AM
   
RE:Error after updating to latest hot fix
Yes i confirmed all files were copied correctly. I even tried copying them again...

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/26/2011 1:34:11 AM
   
RE:Error after updating to latest hot fix
Hi,

I just applied that hotfix again and it worked just fine nor any other customers are reporting any issues. The error message is usual when some files are not overwritten or copied.

Could you please describe us the exact steps you made when applying the hotfix?

Thank you.

Best regards,
Juraj Ondrus

User avatar
Member
Member
kobkan.courtney-hyro - 1/26/2012 10:39:44 PM
   
RE:Error after updating to latest hot fix
I have a similar problem. I am upgrading from Kentico 5.5 to 5.5R2. After copy all the code including new dlls, update web.config.

I have similar error below.

I found this, http://devnet.kentico.com/Knowledge-Base/Upgrading/Server-Error-in-----Application---Could-not-load-f.aspx.

1. Check customhandlers -> it's there.
2. Tried delete the temp files from framework folder, aspnet_regiis -i, iisreset -> still not working.
3. double check the DLL version in bin folder -> correct version.

I don't know why it's still trying to refer to the old one.


Could not load file or assembly 'CMS.GlobalEventHelper, Version=5.5.3789.9800, Culture=neutral, PublicKeyToken=834b12a258f213f9' 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 'CMS.GlobalEventHelper, Version=5.5.3789.9800, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'CMS.GlobalEventHelper, Version=5.5.3789.9800, Culture=neutral, PublicKeyToken=834b12a258f213f9' 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 'CMS.GlobalEventHelper, Version=5.5.3789.9800, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +44
CMS.SettingsProvider.ClassHelper.GetClass(String assemblyName, String className) +156
CMS.GlobalEventHelper.EventHelper.GetHandlerObject(String className) +58
CMS.GlobalEventHelper.EventHelper.GetSecurityHandler() +22
CMS.SiteProvider.UserInfoProvider.AuthenticateUser(String userName, String password, String siteName, Boolean login) +500
CMS.MembershipProvider.CMSMembershipProvider.ValidateUser(String username, String password) +36
System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +75
System.Web.UI.WebControls.Login.AttemptLogin() +152
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981


User avatar
Member
Member
kobkan.courtney-hyro - 1/26/2012 11:20:22 PM
   
RE:Error after updating to latest hot fix
Althought the error was complaining about the login page. I had my other project in the solution with old references. Via visual studio, I had to go to all references to CMS.*, manually remove them all and re-added them again.

It's working now.

User avatar
Member
Member
g.luparia - 3/7/2012 8:46:30 AM
   
RE:Error after updating to latest hot fix
Hello Juraj,
similar problem here.
We installed a fresh new Kentico 6 instance. The sample website loaded correctly.
Than we installed the latest hotfix (20) using Kentico Installation Manager.

Every page load fails with:
Could not load file or assembly 'CMS.CMSHelper, Version=6.0.4297.34144, Culture=neutral, PublicKeyToken=834b12a258f213f9' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Best regards,
Giorgio

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/8/2012 2:29:14 AM
   
RE:Error after updating to latest hot fix
Hi,

As you can see there is also the version mismatch. Have you checked the version of the DLLs in your BIN folder?
Have you tried to clear the .Net cache files?
Are you using any custom assemblies? If so, have you re-referenced the new DLLs and then rebuilt the solution?
Are you using Global Assembly Cache?

Best regards,
Juraj Ondrus

User avatar
Member
Member
g.luparia - 3/9/2012 8:11:13 AM
   
RE:Error after updating to latest hot fix
We tried to clear the .Net cache files and restart IIS
We use no custom assemblies, this is a fresh new installation to use for a demo using one of the available website templates.
As for Global Assembly Cache, we are using the default IIS 7 configuration.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/12/2012 2:10:44 AM
   
RE:Error after updating to latest hot fix
Hi,

And what is the version e.g. of the CMS.CMSHelper.dll file in your BIN folder?

Best regards,
Juraj Ondrus

User avatar
Member
Member
g.luparia - 3/12/2012 4:16:54 AM
   
RE:Error after updating to latest hot fix
Hello Juraj,
we fixed by unistalling the Kentico instance and reinstalling it again: it installed a new instance with the .21 fixpack already applied and everything went fine.

We could try to reproduce the problem but we have little time at the moment. Anyway it should be replicable by downloading the .20 installer, installing on a local IIS with standard settings (W2008r2), updating to .20 with the Installation Manager.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/12/2012 6:30:13 AM
   
RE:Error after updating to latest hot fix
Hi,

I am sorry but I am confused. .Net 2.0 is no longer supported in version 6. So, event the package says net20, the .net3.5 DLLs are used and created. What are your project settings? It should be set at least to .Net3.5.

Best regards,
Juraj Ondrus

User avatar
Member
Member
g.luparia - 3/12/2012 6:34:51 AM
   
RE:Error after updating to latest hot fix
Hi Juraj,
sorry, with .20 I meant the fixpack: 6.0.20, as opposed to 6.0.21.
We are running 6.0.21 ATM with no problems.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/12/2012 7:00:30 AM
   
RE:Error after updating to latest hot fix
OK, now it makes sense :-) Thank you.

It seems that during the hotfix no 20 application somethiwng went wrong the the DLL file was not overwritten correctly.

Best regards,
Juraj Ondrus