Upgrade 4.0 -> 4.1 issue

Posted by Community Admin on 04-Aug-2018 21:52

Upgrade 4.0 -> 4.1 issue

All Replies

Posted by Community Admin on 13-May-2011 00:00

we're having major issues upgrading to the 4.1 latest version (the one that came out 5/13).

After all the steps were followed, and the license activated, i get the following errors when i try to go to the live site.

when we go to the default page:

Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Sitefinity.Abstractions.VirtualPath.SitefinityPageResolver.AppendProperties(StringBuilder output, ObjectData ctrlData, Type ctrlType, CursorCollection placeHolders) +310
   Telerik.Sitefinity.Abstractions.VirtualPath.SitefinityPageResolver.BuildControls(PageData pageData, List`1 controlConatiners, CursorCollection placeHolders) +973
   Telerik.Sitefinity.Abstractions.VirtualPath.SitefinityPageResolver.RenderPage(StringBuilder output, PageData pageData, RequestContext context, String virtualPath) +218
   Telerik.Sitefinity.Abstractions.VirtualPath.SitefinityPageResolver.Open(PathDefinition definition, String virtualPath) +301
   Telerik.Sitefinity.Abstractions.VirtualPath.PathDefinition.OpenFile(String virtualPath) +67
   Telerik.Sitefinity.Abstractions.VirtualPath.VirtualPathManager.OpenFile(String virtualPath) +209
   Telerik.Sitefinity.Abstractions.VirtualPath.SitefinityVirtualFile.Open() +42
   System.Web.Hosting.VirtualPathProvider.OpenFile(String virtualPath) +31
   System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) +133
   System.Web.UI.TemplateParser.ParseInternal() +86
   System.Web.UI.TemplateParser.Parse() +160
   System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() +110
   System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) +65
   System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +218
   System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +40
   System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +8945798
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +320
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +111
   System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +125
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +52
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(String virtualPath, Type requiredBaseType) +28
   Telerik.Sitefinity.Web.PageRouteHandler.BuildHttpHandler(RequestContext requestContext) +1295
   Telerik.Sitefinity.Web.PageRouteHandler.GetHttpHandler(RequestContext requestContext) +63
   System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +8890312
   System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +86
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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




When i go to /sitefinity/pages :

Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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: 

[NullReferenceException: Object reference not set to an instance of an object.]
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +130
   System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item) +100
   System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item) +38
   Telerik.Sitefinity.Abstractions.ProvidersCollection`1.InsertItem(Int32 index, TProvider item) +17
   System.Collections.ObjectModel.Collection`1.Add(T item) +98
   Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +252
   Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +131
   Telerik.Sitefinity.Configuration.ConfigManager..ctor() +12

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
   System.Activator.CreateInstance() +103
   Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +206
   Telerik.Sitefinity.Configuration.ConfigManager.GetManager() +13
   Telerik.Sitefinity.Security.SecurityManager..cctor() +154

[TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Security.SecurityManager' threw an exception.]
   Telerik.Sitefinity.Security.SecurityManager.UpdateCookies(HttpContextBase context) +0
   Telerik.Sitefinity.Web.SitefinityHttpModule.Context_EndRequest(Object sender, EventArgs e) +19
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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


is there anything that can be done to fix it? we love the speed improvements, but if the main site can't get up and running it won't be upgrade time for a while :(

thanks in advance!

Posted by Community Admin on 16-May-2011 00:00

Hi,

Sorry to hear about your misfortunes.  Can you tell me if you have any custom layouts or controls on your pages? Also I can suggest you is to take a look at this blog post which explains the changes in implementation of virtual path provider for Sitefinity 4.1.Please try following the suggested steps, and if the problem persists contact me again.

Kind regards,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 16-May-2011 00:00

Victor, 

We are using regular custom user controls instead of server controls (in other words, we are not using the ref for the layout). I've gone through the blogposts and saw postings regarding that scenario, unfortunately it doesn't apply to us.

We are using our own master pages and our own custom controls (not the templated layout approach). What else can we try to get this upgrade to work?!

Thank you,
-A

Posted by Community Admin on 17-May-2011 00:00

Hi,

Do you have a copy of your website and database before the upgrade process? If you have such a copy you can send it to me so I can try and upgrade your project on our local environment.

Kind regards,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed