DNN Only Works with localhost

Last post 01-21-2005 12:35 PM by diveblue. 5 replies.

Sort Posts:

  • DNN Only Works with localhost

    01-14-2005, 9:18 PM
    • Member
      152 point Member
    • RobertLair
    • Member since 09-12-2002, 7:49 PM
    • Springboro, OH
    • Posts 34
    Hello everyone,

    Not sure if this is something simple, an environment issue, or what, but I thought I would try to save some time by pinging the list. I have been using DNN locally via http://localhost/dotnetnuke.... However, now that I am ready to allow other people to hit it remotely, DNN is not working as expected. Basically, you get to the home page if you browse via http://machinename/dotnetnuke, but all the tabs go back to the home page. Any ideas?

    Thanks!
    Bob
    --
    Robert Lair
    http://blog.robertlair.net
  • Re: DNN Only Works with localhost

    01-14-2005, 9:58 PM
    • Participant
      880 point Participant
    • nettech
    • Member since 06-21-2002, 9:54 PM
    • Charleston, SC
    • Posts 176
    Bob,
    Sounds like you need to update your portal aliases. I'm guessing DNN 3.x from what you described. Access the site via localhost. Login as host and select Site Settings from the Admin menu. On the bottom of the site settings page you will see "Add New HTTP Alias". Click that link and then enter machinename/dotnetnuke in the text box Click update.

    On DNN 2.1.2 the steps are similar. Login as host and select Site Settings from the Admin menu. Down near the bottom you will see the portal alias box. Add ,machinename/dotnetnuke after localhost/dotnetnuke and click Update.



    Hope that helps.

    Will


  • Re: DNN Only Works with localhost

    01-15-2005, 2:55 AM
    • Star
      10,052 point Star
    • Geert
    • Member since 06-18-2002, 11:43 AM
    • The Netherlands
    • Posts 2,011
    You should use machinename/DotNetNuke as your first alias (on dnn 2.1.2 at least, not sure if necessary on 3.0.8)
    Geert Veenstra
  • Re: DNN Only Works with localhost

    01-18-2005, 4:09 PM
    • Member
      90 point Member
    • sitary
    • Member since 06-04-2003, 9:55 AM
    • Posts 18
    Hi,

    I'm encountering a similar issue using 3.08. I developed my site on //localhost/MyDnnSite and it works fine. I want to host it at //MyDnnSite.MyDomainName.com on another server. I copied over the web files and the db. I can login and navigate to most pages as a user but as an admin or host when I try to change Admin settings the only page that I see is the home page. Also, when I click on Register or the Administrator account, I get "An error has occurred." message. When I try to change the SuperUser account settings, the page is blank. When I try to change any Host settings, I get this familiar error:

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

    So I tried changing PortalAlias.HTTPAlias, first by adding MyDnnSite.MyDomainName.com to the string, and when that did not work, replacing it. Still no joy.

    Any thoughts on where I've gone wrong?

    Thanks,

    Simon
  • Re: DNN Only Works with localhost

    01-19-2005, 10:27 AM
    • Contributor
      3,725 point Contributor
    • jhenning
    • Member since 09-26-2002, 8:11 PM
    • Illinois
    • Posts 746
    • TrustedFriends-MVPs
    The menus pulling the wrong alias is a know issue we are working on. Basically we cache the tabs collection, which currently contains the absolute url. See this issue.

    I believe if you turn FriendlyURLs off your problem will be corrected. If not, then wait until the next release.
  • Re: DNN Only Works with localhost

    01-21-2005, 12:02 PM
    • Member
      25 point Member
    • diveblue
    • Member since 02-20-2004, 1:40 PM
    • Posts 5
    I'm having the same issue....does not appear that turning off friendly urls resolves the problem, nor does turning caching off.
Page 1 of 1 (6 items)