We have added about 30 pages to our portal and never had an issue. This final page is causing some headaches so I think the ADX configuration in CRM may be messed up.
I add a new content page in Visual Studio and update everything properly (like we have done for multiple other pages).
I have added the template and it is set properly for the Dealer Portal
I have added the web page and it is set properly for the Dealer Portal, Published and set to Home (for the Dealer Portal).
But when trying to execute the page, we are getting the following. The problem does not exist with the CustomerPortal (same back end CRM).
Suggestions?
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.] Microsoft.Xrm.Portal.Web.Providers.EntityUrlProviderExtensions.GetApplicationPath(IEntityUrlProvider entityUrlProvider, OrganizationServiceContext context, Entity entity, String partialUrlLogicalName, Relationship parentEntityRelationship, String parentEntityName, Func`3 getParentApplicationPath, String siteMarker) +390 Adxstudio.Xrm.Web.Providers.AdxEntityUrlProvider.GetApplicationPath(OrganizationServiceContext context, Entity entity) +6855 Adxstudio.Xrm.Web.Providers.ContentMapEntityUrlProvider.GetApplicationPath(OrganizationServiceContext context, Entity entity, ContentMap map) +1047 Adxstudio.Xrm.Web.Providers.<>c__DisplayClass8.<GetApplicationPath>b__7(ContentMap map) +80 Adxstudio.Xrm.Cms.<>c__DisplayClass1`1.<Using>b__0() +78 Adxstudio.Xrm.Cms.<>c__DisplayClass1`1.<Using>b__0() +71 Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Action action) +621 Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Func`1 action) +320 Adxstudio.Xrm.Cms.ContentMapProvider.Using(ContentMapLockType lockType, Func`2 action) +560 Adxstudio.Xrm.Cms.ContentMapProvider.Using(Func`2 action) +163 Adxstudio.Xrm.Web.Providers.ContentMapEntityUrlProvider.GetApplicationPath(OrganizationServiceContext context, Entity entity) +290 Adxstudio.Xrm.Web.EventSiteMapProvider.EntityHasPath(OrganizationServiceContext context, Entity entity, String path) +85 Adxstudio.Xrm.Web.<>c__DisplayClass1.<FindEvent>b__0(Entity e) +96 System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source, Func`2 predicate) +168 Adxstudio.Xrm.Web.EventSiteMapProvider.FindEvent(OrganizationServiceContext context, Entity website, String path) +410 Adxstudio.Xrm.Web.EventSiteMapProvider.FindSiteMapNode(String rawUrl) +519 Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.FindSiteMapNode(String rawUrl, ContentMap map) +1990 Adxstudio.Xrm.Web.<>c__DisplayClass9.<FindSiteMapNode>b__8(ContentMap map) +71 Adxstudio.Xrm.Cms.<>c__DisplayClass1`1.<Using>b__0() +78 Adxstudio.Xrm.Cms.<>c__DisplayClass1`1.<Using>b__0() +71 Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Action action) +621 Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Func`1 action) +320 Adxstudio.Xrm.Cms.ContentMapProvider.Using(ContentMapLockType lockType, Func`2 action) +560 Adxstudio.Xrm.Cms.ContentMapProvider.Using(Func`2 action) +163 Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.FindSiteMapNode(String rawUrl) +296 Microsoft.Xrm.Portal.PortalContext.GetNode(RequestContext request) +231 System.Lazy`1.CreateValue() +14345072 System.Lazy`1.LazyInitValue() +524 Microsoft.Xrm.Portal.PortalContext.<.ctor>b__3() +90 System.Lazy`1.CreateValue() +14345072 System.Lazy`1.LazyInitValue() +524 Microsoft.Xrm.Portal.PortalContext.get_Entity() +88 Adxstudio.Xrm.Web.Routing.PortalRouteHandler.OnPortalLoaded(RequestContext requestContext, IPortalContext portal) +340 Adxstudio.Xrm.Web.Routing.PortalRouteHandler.GetHttpHandler(RequestContext requestContext) +207 System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +12435415 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165 |