Empty Portals and PortalAlias table after installi

2019-08-18 05:19发布

After installing version 5.02.02 on localhost:81 as a new installation (which didn't run smooth but OK'ed in the end), the following error came up when opening the site:

Domain Name Windows Vista Does Not Exist In The Database

My guess is that the installer doesn't like http://localhost:81 or any other port. After checking the Portals and PortalAlias tables, both came up empty.

  • Is there a way to fill these settings interactively?
  • If not, how should I fill them by hand and what dependencies should I watch out for? In short: what values go where?
  • If not, would it help to reinstall to a mapped domain name (via windows hosts file) on a normal port? EDIT: no, it didn't help

I'm not certain the error's due to the different port. It seems as though DNN tries to map the local machines domain name and wants to fill it in in the Portals table, but doesn't because localhost doesn't match mymachine.example.host.

2条回答
Fickle 薄情
2楼-- · 2019-08-18 06:04

The user Brent actually answered this question, but later deleted his own answer. Since it is the correct answer, I repeat it here:

Answer by Brent:

I was having the same problem and found a solution.

  1. Login as Host, and add a Portal Alias under "Admin > Site Setting"
  2. In web.config uncomment: <add key="UsePortNumber" value="true" />
  3. Restart the app in IIS Manager.

Details of the solution are in this Geeks with Blogs blog.

NOTE: In addition to this, it is still necessary to add the portal and the portalalias by hand. After adding them by hand, restart the web application (touch web.config, for instance).

查看更多
倾城 Initia
3楼-- · 2019-08-18 06:15

Most of the errors like this are result of permission/configuration problems, I would recommend to try creating a new website by following this article. Hopefully that will help you a lot.

查看更多
登录 后发表回答