TaxonomyManager Error
Hello,
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.
|
[InvalidOperationException: The type SByte* does not have an accessible constructor.] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForNullExistingObject(IBuilderContext context) +142 BuildUp_System.SByte*(IBuilderContext ) +121 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +12 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +191 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +93 [BuildFailedException: The current build operation (build key Build Key[System.SByte*, null]) failed: The type SByte* does not have an accessible constructor. (Strategy type BuildPlanStrategy, index 5)] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +255 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve(IBuilderContext context) +107 BuildUp_System.String(IBuilderContext ) +231 [InvalidOperationException: The parameter value could not be resolved when attempting to call constructor System.String(System.SByte* value, System.Int32 startIndex, System.Int32 length, System.Text.Encoding enc).] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForResolutionFailed(Exception inner, String parameterName, String constructorSignature, IBuilderContext context) +140 BuildUp_System.String(IBuilderContext ) +765 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +12 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +191 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +93 [BuildFailedException: The current build operation (build key Build Key[System.String, null]) failed: The parameter value could not be resolved when attempting to call constructor System.String(System.SByte* value, System.Int32 startIndex, System.Int32 length, System.Text.Encoding enc). (Strategy type BuildPlanStrategy, index 5)] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +255 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve(IBuilderContext context) +107 BuildUp_Telerik.Sitefinity.Taxonomies.TaxonomyManager(IBuilderContext ) +158 [InvalidOperationException: The parameter providerName could not be resolved when attempting to call constructor Telerik.Sitefinity.Taxonomies.TaxonomyManager(System.String providerName, System.String transactionName).] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForResolutionFailed(Exception inner, String parameterName, String constructorSignature, IBuilderContext context) +140 BuildUp_Telerik.Sitefinity.Taxonomies.TaxonomyManager(IBuilderContext ) +352 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context) +12 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context) +191 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +93 [BuildFailedException: The current build operation (build key Build Key[Telerik.Sitefinity.Taxonomies.TaxonomyManager, OpenAccessDataProvider]) failed: The parameter providerName could not be resolved when attempting to call constructor Telerik.Sitefinity.Taxonomies.TaxonomyManager(System.String providerName, System.String transactionName). (Strategy type BuildPlanStrategy, index 5)] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context) +255 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.ObjectBuilder2.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing) +68 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name) +148 [ResolutionFailedException: Resolution of the dependency failed, type = "Telerik.Sitefinity.Taxonomies.TaxonomyManager", name = "OpenAccessDataProvider". Exception message is: The current build operation (build key Build Key[Telerik.Sitefinity.Taxonomies.TaxonomyManager, OpenAccessDataProvider]) failed: The parameter providerName could not be resolved when attempting to call constructor Telerik.Sitefinity.Taxonomies.TaxonomyManager(System.String providerName, System.String transactionName). (Strategy type BuildPlanStrategy, index 5)] Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name) +186 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.DoBuildUp(Type t, String name) +11 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainer.Resolve(Type t, String name) +9 Telerik.Sitefinity.Utilities.Microsoft.EnterpriseLibrary.Unity.UnityContainerBase.Resolve(String name) +68 Telerik.Sitefinity.Abstractions.ObjectFactory.Resolve(String name) +64 Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +195 Telerik.Sitefinity.Data.ManagerBase`1.GetManager() +37 Telerik.Sitefinity.Taxonomies.TaxonomyManager.GetManager() +9 Telerik.Sitefinity.Modules.DefinitionsHelper.CreateTaxonomyLink(Guid id, String commandName, WidgetBarSectionElement sidebar) +55 Telerik.Sitefinity.Modules.DefinitionsHelper.CreateTaxonomyLinks(WidgetBarSectionElement sidebar) +58 Telerik.Sitefinity.Modules.GenericContent.ContentDefinitions.DefineContentBackendContentView(ConfigElement parent) +972 Telerik.Sitefinity.Web.UI.ContentUI.Config.ContentViewConfig.OnPropertiesLoaded() +60 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +75 Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +155 Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +13 Telerik.Sitefinity.Configuration.Config.Get() +137 Telerik.Sitefinity.Modules.Blogs.BlogsModule.Initialize(ModuleSettings settings) +50 Telerik.Sitefinity.Services.SystemManager.InitializeModule(ModuleSettings settings, Boolean start) +84 Telerik.Sitefinity.Services.SystemManager.Initialize() +604 Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +638 Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +83 Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +24 System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +36 System.Web.HttpApplication.InitModulesCommon() +132 System.Web.HttpApplication.InitModules() +98 System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +754 System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +337 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +225 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +402 |
Hi Lev Rosenblit,
Thank you for using our services.
I have tried to recreate the issue you were facing using nested master pages taken from this tutorial: [How Do I:] Create Nested Master Page in Visual Studio 2008. However I was not able to reproduce this issue locally. I have previously seen such an issue when I converted my project to target .NET 4.0 framework. .NET 4.0 is not yet supported by Sitefinity 4.0 CTP. We are going to have .NET 4.0 project with the release of the beta version.
Greetings,
Radoslav Georgiev
the Telerik team
The sitefinity web application is under .NET3.5.
I use VS2010.
It worked fine before, i didnt change anything major, just added a nested master page.
When i run it, i get the following 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.
|
[ConfigurationErrorsException: Invalid page taxonomy configured. No taxonomy with the name of "Pages" for provider "".] Telerik.Sitefinity.Web.SiteMapBase.Initialize(String name, NameValueCollection attributes) +1543 Telerik.Sitefinity.Web.SiteMapBase.GetSiteMapProvider(String rootName) +290 Telerik.Sitefinity.Web.BackendSiteMap.GetCurrentProvider() +31 Telerik.Sitefinity.Web.BackendSiteMap.FindSiteMapNode(Guid id, Boolean ifAccessible) +12 Telerik.Sitefinity.Modules.DefinitionsHelper.GetBaseUrl(Guid pageId) +24 Telerik.Sitefinity.Modules.GenericContent.ContentDefinitions.DefineContentBackendContentView(ConfigElement parent) +3175 Telerik.Sitefinity.Web.UI.ContentUI.Config.ContentViewConfig.OnPropertiesLoaded() +60 Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.LoadSection(ConfigSection section, ConfigPolicyHandler policyHandler, String policyName) +75 Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider, ConfigPolicyHandler policyHandler, String policyName, Boolean singlePolicy) +155 Telerik.Sitefinity.Configuration.ConfigSection.Initialize(ConfigProvider provider) +13 Telerik.Sitefinity.Configuration.Config.Get() +137 Telerik.Sitefinity.Modules.Blogs.BlogsModule.Initialize(ModuleSettings settings) +50 Telerik.Sitefinity.Services.SystemManager.InitializeModule(ModuleSettings settings, Boolean start) +84 Telerik.Sitefinity.Services.SystemManager.Initialize() +604 Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +660 Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +84 Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +25 System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +7 System.Web.HttpApplication.InitModulesCommon() +67 System.Web.HttpApplication.InitModules() +46 System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +618 System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +251 System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +129 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +291 |
After searching for the reason i gave up and started from scratch, created a new project and added my custom pages.
Hello Lev Rosenblit,
The first error says that there is no taxonomy for Pages added. I have hit this error if there has been some problem with the database and it has not been initialized properly. The way to fix this was to delete the config files in ~/App_Data/Sitefinity/Configuration/ and access my website with ~/Sitfinity/Startup to initialize the project. The original error is coming from OpenAccess we will investigate if there is some problem with it not getting the proper version of OpenAccess. I have installed a different version of OpenAccess than the one used withing Sitefinity 4.0 CTP. However when I run the project it always gets the assemblies the CMS was built with. It never goes to get the newer ones unless I tell it to upgrade them.
We are going to spend some more time investigating and see what could be done to prevent issues like this. When you create a project you should not go to the project and tell the web application to look for the assemblies that it was built with, instead of getting them from your installed version.
Sincerely yours,
Radoslav Georgiev
the Telerik team
Hello,
I got the TaxonomyManager error followed by the SByte* error again.
The solution you suggested is incorrect. If you delete all the configuration files and run startup, you have to delete from sf_role, sf_users, sf_manager_info, and reset authorization because you get an authorization error, and a whole other mess of errors and problems.
So, i tracked down the error: its the ProjectConfig.Config file.
every time i use the configuration manager in sitefinity to change the project configuration (this creates this config file) this error appears.
The solution:
just delete ProjectConfig.Config (no startup needed) and everything works fine again.
Lev Rosenblit
Hello Lev Rosenblit,
Thank you for the additional information.
Could you also please let us know exactly what kind of modifications you are performing in the Configurations section to reproduce the issue? Also you said that you had a different OpenAccess version on your computer, is the version of OpenAccess in the faulty project upgraded? Or this reproduces with the one we ship the product with.
Regards,
Radoslav Georgiev
the Telerik team
Hello,
I just changed the project name.
Lev Rosenblit
Hello Lev Rosenblit,
Thank you for the clarification.
We have managed to reproduce the issue, and will make sure we fix it. Other than that the configuration editor should work without problems. If you encounter any other problems exploring the CTP version, please feel free to contact us.
Regards,
Radoslav Georgiev
the Telerik team
I'm running into the same errors. None of the above suggestions helped. Is there a work-around for this problem, until the beta is released?
thnx.
Hi ColdCold,
There will be a BETA release withing a month were the issue will be fixed.
Greetings,
Ivan Dimitrov
the Telerik team