Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Getting Error After upgrading from 7.2.2 to 7.4.1Getting Error After upgrading from 7.2.2 to 7.4.1
Previous
 
Next
New Post
9/30/2015 1:35 PM
 

Hi,

I am getting following error after upgrading DNN from 7.2 to 7.4.1. 

Please help. 

[server1][Thread:33][FATAL] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Entities.Portals.PortalSettingsController.LoadPortal(PortalInfo portal, PortalSettings portalSettings) at DotNetNuke.Entities.Portals.PortalSettings.BuildPortalSettings(Int32 tabId, PortalInfo portal) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo portalAliasInfo) at DotNetNuke.HttpModules.UrlRewrite.BasicUrlRewriter.RewriteUrl(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 2015-09-27 09:42:10,842 [server1][Thread:37][FATAL] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Entities.Portals.PortalSettingsController.LoadPortal(PortalInfo portal, PortalSettings portalSettings) at DotNetNuke.Entities.Portals.PortalSettings.BuildPortalSettings(Int32 tabId, PortalInfo portal) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo portalAliasInfo) at DotNetNuke.HttpModules.UrlRewrite.BasicUrlRewriter.RewriteUrl(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
New Post
9/30/2015 6:31 PM
 
try running http://dnnscript.codeplex.com/release... in Host > SQL and restart DNN.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/2/2015 11:20 AM
 

Thanks. I tried to upgrade after running script (http://dnnscript.codeplex.com/release...). But it is still showing same error after upgrading DNN to 7.4.1

Issue is not solved yet. and I am not sure what I am missing.

Thanks,

Sandeep

 

 
New Post
10/2/2015 5:58 PM
 
you need to be able to open and save site settings without error prior to the upgrade.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/5/2015 12:18 PM
 
Hi,
I tried to run script. But it is giving error on one line and fails to create table. So it fails to insert other entries related to that table.
Also after I get sucessfully executed script, will my DNN will fine after upgrade. Right now, after upgrading I am getting error for all pages.

Here is the script where I am getting error.
Getting error on line - VALUES (P.PortalID, @SettingName, @DefaultValue, @UserID, GetDate(), @UserID, GetDate(), P.DefaultLanguage)

Full script -
CREATE PROCEDURE {databaseOwner}[{objectQualifier}sys_AdjustPortalSettingInt]
@SettingName nVarChar( 50), -- not Null or Empty
@DefaultValue Int, -- Null: remove invalid settings only
@ForceDefault Bit, -- replace existing non-empty value?
@MinValue Int = Null, -- optional: specify min value, smaller values will be adjusted to default
@MaxValue Int = Null, -- optional: specify max value, smaller values will be adjusted to default
@UserID Int = -1 -- ID of executing user
AS
BEGIN
DECLARE @DefaultString AS nVarChar( 11) = CAST(@DefaultValue AS nVarChar(11));
MERGE INTO {databaseOwner}[{objectQualifier}PortalSettings] S USING {databaseOwner}[{objectQualifier}Portals] P ON (S.PortalID = P.PortalID AND S.SettingName = @SettingName)
WHEN NOT MATCHED AND @DefaultValue IS Not Null THEN
INSERT ( PortalID, SettingName, SettingValue, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate, CultureCode )
VALUES (P.PortalID, @SettingName, @DefaultValue, @UserID, GetDate(), @UserID, GetDate(), P.DefaultLanguage)
WHEN MATCHED AND @DefaultValue Is Null
AND ({databaseOwner}[{objectQualifier}sys_IntValue](SettingValue) IS Null
OR {databaseOwner}[{objectQualifier}sys_IntValue](SettingValue) < @MinValue
OR {databaseOwner}[{objectQualifier}sys_IntValue](SettingValue) > @MaxValue) THEN
DELETE
WHEN MATCHED AND ({databaseOwner}[{objectQualifier}sys_IntValue](SettingValue) IS Null
OR {databaseOwner}[{objectQualifier}sys_IntValue](SettingValue) < @MinValue
OR {databaseOwner}[{objectQualifier}sys_IntValue](SettingValue) > @MaxValue
OR @ForceDefault = 1) THEN
UPDATE SET SettingValue = @DefaultString, LastModifiedByUserID = @UserID, LastModifiedOnDate = GetDate();
END


Thanks,
Sandeep
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Getting Error After upgrading from 7.2.2 to 7.4.1Getting Error After upgrading from 7.2.2 to 7.4.1


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out