Running DNN402 on dedicated server with SQL Server Express
Last Post 02/02/2006 3:53 AM by Lee Sykes. 1 Replies.
Author Messages
John Braga
Nuke Active Member
Nuke Active Member
Posts:34


--
02/01/2006 12:38 PM

    I studied your videos on installing DNN 3.2 to a shared host with interest.  I have run into difficulties trying to install DNN402 on my dedicated server.

    The test site I have created runs fine on local development system (XP Pro, VWD 2005 Express, SQL Server Express 2005).  I have left web.config with the default settings so the database (database.mdf in app_data) is attached temporarily. 

    I have created a site on the W2003 server using IIS6, set the NTFS permissions so that IUSR_WPG has full access to the directory, and ftpd the entire site unchanged.

    When I try to run it I get the dreaded Object reference not set to an instance of an object message, and the details say:

    [NullReferenceException: Object reference not set to an instance of an object.]
       DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +125
       DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +83
       DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +3797
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

    I have been puzzling over this for 3 days without success.  I suspect it is permissions based.  Presumably SQL Server Express takes care of the permissions (I have installed a very small .NET 2.0 site using the standard web.config method of dynamically attaching and it works without a problem, so the difference may be in the DNN side)

    Any clues please?

    John B

    <!-- [NullReferenceException]: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->

    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    02/02/2006 3:53 AM
    Hi John,

    I'm afraid I haven't installed v4.x to a live server yet, so I can't really offer any advice. If you are trying to install a version that you have already created at localhost level, I would suggest that to begin with you just install DNN4.0.2 using the install zip file to double check that you can get DNN4 to actually install on a live server, at least that may start to give you a few clues as to what the problem is.

    If this still doesn't provide any answers I would suggest asking in the main DNN forums to see if anyone can provide any information.

    When you find the answer, I would appreciate it if you could let us know the solution. - A video for installing 4.x to a live host is on the cards and it will help if there are already some key tips to watch out for.

    Thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---