Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitefinity Routing - Object reference not set to an instance of an object. #279

Open
wojciech-wieronski opened this issue Feb 28, 2016 · 0 comments

Comments

@wojciech-wieronski
Copy link

Sitefinity Version: 8.2.5900
Feather Version: 1.4.360.0

Attempted to follow the example here: http://docs.sitefinity.com/for-developers-override-the-default-page-route-handling

Getting the following stack trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Sitefinity.Frontend.Resources.PackageManager.GetPackageFromNodeId(String nodeId) +385
Telerik.Sitefinity.Frontend.Resources.PackageManager.GetPackageFromPageInfo() +730
Telerik.Sitefinity.Frontend.Resources.PackageManager.GetCurrentPackage() +100
Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.LayoutVirtualPathBuilder.AddVariablesToPath(String layoutVirtualPath) +31
Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.LayoutVirtualPathBuilder.BuildPathFromName(String templateName) +188
Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.LayoutResolver.GetVirtualPath(IPageTemplate template) +191
Telerik.Sitefinity.Modules.Pages.PageHelperImplementation.ResolveDynamicMasterPage(IPageTemplate template) +96
Telerik.Sitefinity.Abstractions.VirtualPath.PageResolverBase.BuildPageTemplateRecursive(IPageTemplate pageTemplate, String theme, RequestContext context, StringBuilder output, CursorCollection placeHolders, DirectiveCollection directives, List`1 controlConatiners) +181
Telerik.Sitefinity.Mvc.Rendering.PureMvcPageResolver.RenderPage(StringBuilder sb, PageData pageData, RequestContext context, String virtualPath) +411
Telerik.Sitefinity.Mvc.Rendering.PureMvcPageResolver.Open(PathDefinition definition, String virtualPath) +1078
System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) +243
System.Web.UI.TemplateParser.ParseInternal() +108
System.Web.UI.TemplateParser.Parse() +196
System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() +179
System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) +135
System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +262
System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +35
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +510
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +350
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +146
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +11897646
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +48
Telerik.Sitefinity.Web.PageRouteHandler.InstantiateHandler(RequestContext requestContext, PageSiteNode pageDataNode, String& theme) +241
Telerik.Sitefinity.Web.PageRouteHandler.BuildHttpHandler(RequestContext requestContext) +672
Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Routing.MvcPageRouteHandler.BuildHttpHandler(RequestContext requestContext) +10
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +11987059
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92

Please advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant