Upgrade to 4.1 issues...

Posted by Community Admin on 04-Aug-2018 22:26

Upgrade to 4.1 issues...

All Replies

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


Just upgraded to 4.1 and now my site is down.

Any ideas :

There is a column in the 'sf_media_content' table that cannot be resolved because it has no name specified and is not mapped.

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: Telerik.OpenAccess.Exceptions.InvalidOperationException: There is a column in the 'sf_media_content' table that cannot be resolved because it has no name specified and is not mapped.

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:

[InvalidOperationException: There is a column in the 'sf_media_content' table that cannot be resolved because it has no name specified and is not mapped.]
   Telerik.OpenAccess.Metadata.AggregateMetadataSource.CheckForUnmappedObjects(MetadataContainer container, List`1 mappedTables, List`1 mappedColumns) +575
   Telerik.OpenAccess.Metadata.AggregateMetadataSource.CheckUnmappedTables(MetadataContainer firstContainer, MetadataContainer secondContainer) +130
   Telerik.OpenAccess.Metadata.AggregateMetadataSource.ApplyExtender(MetadataContainer firstContainer, MetadataContainer secondContainer) +37
   Telerik.OpenAccess.Metadata.AggregateMetadataSource.CreateModel() +100
   Telerik.OpenAccess.Metadata.MetadataSource.GetModelCore(MetadataContainer model) +83
   Telerik.Sitefinity.Data.OA.MetadataSourceAggregator.Extend(MetadataSource metadataSource) +120
   Telerik.Sitefinity.Data.OA.OpenAccessConnection.UpdateMetadata(MetadataSource metadataSource, String moduleName, List`1 dynamicTypesToRegister, IOpenAccessUpgradableProvider upgradable) +293

[Exception: Unable to merge MetadataSource provided by 'Telerik.Sitefinity.Taxonomies.Data.OpenAccessTaxonomyProvider': There is a column in the 'sf_media_content' table that cannot be resolved because it has no name specified and is not mapped.]
   DynamicModule.ns.Wrapped_OpenAccessTaxonomyProvider_cffb5df1eb40405093280f7d6265bd11.Initialize(String providerName, NameValueCollection config, Type managerType) +405
   Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager) +2211
   Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager) +74
   Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName) +214

[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) +117
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +247
   System.Activator.CreateInstance() +88
   Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +115
   Telerik.Sitefinity.Modules.DefinitionsHelper.CreateTaxonomyLink(Guid id, String commandName, String commandArgument, WidgetBarSectionElement sidebar) +83
   Telerik.Sitefinity.Modules.Libraries.Images.ImagesDefinitions.DefineBackendListView(ConfigElement parent, String controlDefinitionName, String viewName, Boolean viewImagesByLibrary) +10137
   Telerik.Sitefinity.Modules.Libraries.Images.<>c__DisplayClass14.<DefineBackendContentView>b__e() +93
   System.Lazy`1.CreateValue() +12769935
   System.Lazy`1.LazyInitValue() +355
   Telerik.Sitefinity.Configuration.ConfigElementLazyItem`1.get_Element() +100
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +238
   Telerik.Sitefinity.Web.UI.ContentUI.Config.ContentViewControlElement.GetDefaultMasterView() +344
   Telerik.Sitefinity.Web.UI.ContentUI.ContentView.DetermineCurrentViewName() +217
   Telerik.Sitefinity.Web.UI.ContentUI.ContentView.CreateChildControls() +66
   System.Web.UI.Control.EnsureChildControls() +182
   System.Web.UI.Control.PreRenderRecursiveInternal() +60
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Control.PreRenderRecursiveInternal() +222
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4185

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

Rollback and wait till the patch tomorrow or early next week...I've yet to get a 4.0-4.1 upgrade to work w/out errors

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

Just upgraded to SP1 and still the same error. What do I do now ?

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

Weep endlessly? :)

What if you create a new quick dummy project\DB and compare the tables from yours and the new one?  Is there perhaps a column that should be there, or one that shouldn't?

Did you roll back to 4.0 then go to 4.1.1 or just went from the broken 4.1 up to 4.1.1?

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

Hi Steve

I looked at that table. There's 5 columns extra in my site, compare to a blank project.

I upgraded from 4.1 - so I never rolled back. I now regret that!


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

Have you checked this blog post first:
Important considerations before upgrading to Sitefinity 4.1

This thread is closed