Reputation: 2941
Total noob question on DotNetNuke, using it for first time.
My client gave me a dump of his website (made in DNN) and he wants to host his site with me.
He has a list of portals. I would like to know how I can view one in localhost.
I have created a DotNetNuke application in my local IIS that points to the code my client gave. This folder has DotNetNuke.webproj file.
Inside Portals directory I got a folder named StackMe, for example. How do I access that portal?
When I browse to http://localhost/DotNetNuke/
it redirects to http://localhost/DotNetNuke/Install/UnderConstruction.htm
Upvotes: 4
Views: 5204
Reputation: 821
If you're seeing the under construction page, something's amiss (captain obvious here).
Some steps to help troubleshoot on your local machine:
<connectionStrings>
, check the <add name="SiteSqlServer" ... />
element. <appSettings>
check the <add name="SiteSqlServer" ... />
element.select *
). Make note of the Portal ID.INSERT INTO PortalAlias (PortalID, HttpAlias) VALUES (<YourPortalID>, 'http://yoururl')
If all that fails...
I have had limited success is renaming the Install
directory to something else, say _Install
and hitting the site again so that I can see what the ASP.NET error is. After I get the site running again I revert it to its original name.
Good luck!
Upvotes: 6
Reputation: 155905
If it's redirecting to Under Construction, the site probably isn't able to reach the database. DotNetNuke isn't going to be able to display anything without a connection to the database. You might get more information if you try to hit http://localhost/DotNetNuke/Install/Install.aspx?mode=none
The mapping of a portal to a URL is handled in the PortalAlias
database table. You should just be able to add your localhost
URL to that table, and then be able to access the site (once the site can hit the database). If the site has multiple portals, you'll need to add an alias for each portal you want to access.
Upvotes: 8
Reputation: 5806
This will be a long story but I will try to keep it small:
Assuming you have localhost/dotentnuke website setup correctly,please backup your database before trying following:
Keep in mind that portalAlias is the table where dnn looks, and portal 0 is the default portal, so that should be at least one entry for portal 0 in portal alias.
Since you are having dnn instance with multiple portals, you have to create separate website for each if they are parent portals. and alter the httpalias to your local iis url for each of the portal.
Let me know if you need any other help.
Upvotes: 0