Error when call method DotNetNuke.Common.Globals.NavigateURL
Add an Answer
Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
Hi all
I using code below
DotNetNuke.Common.Globals.NavigateURL(tabId,ps, "", "view=" + Constants.PageScope.ViewNews.ToString().ToLower(), "id=" + question
all parameter i check not null but when run it get error below :
Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Urls.AdvancedFriendlyUrlProvider.FriendlyUrlInternal(TabInfo tab, String path, String pageName, String portalAlias, PortalSettings portalSettings) at DotNetNuke.Entities.Urls.AdvancedFriendlyUrlProvider.FriendlyUrl(TabInfo tab, String path, String pageName, PortalSettings portalSettings) at DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider.FriendlyUrl(TabInfo tab, String path, String pageName, PortalSettings settings) at DotNetNuke.Common.Globals.NavigateURL(Int32 tabID, Boolean isSuperTab, PortalSettings settings, String controlKey, String language, String pageName, String[] additionalParameters)
at DotNetNuke.Common.Globals.NavigateURL(Int32 tabID, PortalSettings settings, String controlKey, String[] additionalParameters) at GB.News.Components.Common.Links.ViewNews(Int32 questionId, Int32 tabId, PortalSettings ps) at GB.News.Components.Modules.UrlModule.OnBeginRequest(Object source, EventArgs e)
Please help me