Error Creating Portal Template through Wizard
Last Post 12/18/2012 1:38 PM by LetItShine. 17 Replies.
Author Messages
LeAnneR
Nuker
Nuker
Posts:19


--
08/28/2012 1:10 PM
    Error: is currently unavailable.DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object.-->
    System.NullReferenceException: Object reference not set to an instance of an object at DotNetNuke.Entities.Tabs.TabController.SerializeTab(XmlDocumenttabXml, Hashtable tabs, TabInfor tab, Portalinfo portal, Boolean includeContent) at DotNetNuke.Modules.Admin.Portals.Template.SerialtizeTabs (XmlWriter writer,PortalInfo portal) at DotNetNuke.Modules.Admin.Portals.Template.comdExport_Click (Object sender, EventArgs e)--end of inner exception stack trace ---

    I have increased httpRuntime
    I have no 3rd party modules
    There are over 400 pages with content using DNN Pro HTML and Links modules.
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 1:13 PM
    Also I have checked the database Users & Portal tables:
    > Portals Table: AdministratorId = 2 and AdministratorRoleId = 1
    > Users Table: userID = AdministratorID = 2 AdministratorRoleID = 0 (originall was changed to 1)

    Joseph Craig
    DNN MVP
    Posts:11667


    --
    08/28/2012 1:31 PM
    Which version of DotNetNuke are you using?

    Since you are using the Professional edition, you are entitled to tech support from DotNetNuke Corp. You might also want to open a ticket with them.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 2:00 PM
    Of course I have already opened a help desk ticket with them. I just have found you so helpful and wanted to pose the issue here as a paying member. We are using 6.1.1 for this installation.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    08/28/2012 2:20 PM
    I wasn't trying to brush you off. Just trying to make sure you get all possible help!

    I'm not aware of problems creating portal templates with 6.1.1.

    As a test, try creating the template WITHOUT including content. That should be much faster.

    If that works, then runtime might be the problem. To which value did you increase it? Try increasing by a factor of 10 and see if that makes a difference.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 2:23 PM
    No worries. I will try the "no content" method to see if size is the culprit. Here is the current web.config settings:
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 2:24 PM
    httpRuntime useFullyQualifiedRedirectUrl="true" executionTimeout="3600" maxRequestLength="118192" requestLengthDiskThreshold="118192" requestValidationMode="2.0"
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 2:26 PM
    I was also thinking of cloning the site and upgrading it to 6.2.2 and give it try.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    08/28/2012 2:52 PM
    For fun, set executionTimeout to 100000 and try it.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 2:53 PM
    I attemped to export a template w/o checking the content box. I received the same error as described above.
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    08/28/2012 2:58 PM
    Okay for fun... I updated execution in web.config - restarted the site and app pool. Exported w/o content - same error.
    Exported w/ content - same error.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    08/28/2012 6:33 PM
    Can you look in the Event Log and see if there are errors reported?

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    LeAnneR
    Nuker
    Nuker
    Posts:19


    --
    09/04/2012 11:37 AM
    Back from vacation and onto this issue: I just tried to create a new template and this is the result from the event viewer.

    ModuleId: 321

    ModuleDefId: 63

    FriendlyName:

    ModuleControlSource: DesktopModules/Admin/Portals/Template.ascx

    AssemblyVersion: 6.1.1

    PortalID: 0

    PortalName: Human Services Department Intranet

    UserID: 1

    UserName: host

    ActiveTabID: 17

    ActiveTabName: Site Management

    RawURL: /Host/Portals/tabid/17/ctl/Template/mid/321/portalid/0/Default.aspx?popUp=true

    AbsoluteURL: /Default.aspx

    AbsoluteURLReferrer: http://dnndev.hra.co.santa-cruz.ca....popUp=true

    UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)

    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

    ExceptionGUID: 8bcec906-f56c-47c0-9923-0f9b0a26d8ef

    InnerException: Object reference not set to an instance of an object.

    FileName:

    FileLineNumber: 0

    FileColumnNumber: 0

    Method: DotNetNuke.Entities.Tabs.TabController.SerializeTab

    StackTrace:

    Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Tabs.TabController.SerializeTab(XmlDocument tabXml, Hashtable tabs, TabInfo tab, PortalInfo portal, Boolean includeContent) at DotNetNuke.Modules.Admin.Portals.Template.SerializeTabs(XmlWriter writer, PortalInfo portal, Hashtable tabs, TabCollection tabCollection) at DotNetNuke.Modules.Admin.Portals.Template.SerializeTabs(XmlWriter writer, PortalInfo portal) at DotNetNuke.Modules.Admin.Portals.Template.cmdExport_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

    Source:

    Server Name:
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    09/04/2012 12:55 PM
    I'm wondering if perhaps there is something "wrong" with the portal that is causing the problem.

    I just exported two portals (one small and one fairly large) from my test installation that is DotNetNuke 1.1.5. No problems with either, though the large one took more than a few minutes.

    Do you have a second, small portal that you can try?

    Did you ever get help from DotNetNuke?

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    John Santiago
    Nuke Ace
    Nuke Ace
    Posts:53


    --
    12/13/2012 10:26 AM
    LeAnne,

    Were you able to resolve this issue? I am struggling with the same problem and tried all the options mentioned in this post but no luck. Please let me know how you were able to get around this.

    Many thanks
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    12/13/2012 11:58 AM
    John,

    What happens when you try to export a template? (and which version of DotNetNuke are you using?)

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    LetItShine
    Nuke Ace
    Nuke Ace
    Posts:47


    --
    12/18/2012 1:38 PM
    This might help. I found this forum string while confronting the same issue. I seem to have gotten past it by going to host settings and restarting the application and then trying again to create the site template. This time it worked without errors.

    LetItShine
    Nuke Ace
    Nuke Ace
    Posts:47


    --
    12/18/2012 1:38 PM
    This might help. I found this forum string while confronting the same issue. I seem to have gotten past it by going to host settings and restarting the application and then trying again to create the site template. This time it worked without errors.



    ---