DNN 5.6.2 数据库中不存在域名
我在 DNN 5.6.2 中发现此错误“数据库中不存在域名”。
当我在另一台计算机上运行我的网站时,就会产生这种错误。
我不知道为什么会发生这种情况。
i found this error "Domain Name Does Not Exist In The Database" in DNN 5.6.2.
when i run my web site in another computer that time this kind of error is genetared.
i dont know why this happen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这可能已经很晚了,但对于遇到这个问题的人来说,
在我确保更新了数据库中的“Portal Alias”表以拥有 HTTP 别名(对于我的本地主机,我将其设置为 localhost:8089 ,这与我设置的值相同)时,我遇到了同样的问题在 DNN 网站的 IIS 绑定中),门户 ID 为 0(因为我的门户 ID 为 0),
我正在检查以确保我已使用数据库连接字符串更新了 web.config 文件,但后来我意识到 web.config 中有两点用于数据库连接,而我缺少其中之一。
因此,请确保将两个连接更新为:
希望这会有所帮助。
I know this might be very late, but for anyone having this issue,
I had the same issue, after I made sure that I have updated the "Portal Alias" table in db, to have a HTTP Alias (for my local host, I set it to localhost:8089 which was equal to what I had set up in IIS binding for DNN website), with the portal ID of 0 (as my portal id was 0),
I was checking to be sure I have updated web.config file with data base connection strings, but then I realized there were two points for database connection in web.config, and I was missing one of them.
So make sure to update both two connections as:
Hope this helps.
您如何设置您的网站以及如何从另一台计算机访问您的网站?
我假设您已完成此操作
1) 添加到您的 IIS 站点、www.xxx.com 或其他网站的绑定
2) 在您的域上设置主机名,以便所有人都可以访问
则将新的门户别名添加到您的门户
3) 以主持人身份登录,如果您的门户是 http://localhost/xxx, 已经设置了网站,但尚未为其设置非本地主机 URL,这将是当前的问题。
要从另一台计算机访问它,您必须使用 PortalAlias。访问您的数据库,您将能够查看您的门户可以使用的所有门户别名。
How have you set up your website and how are you accessing your site from this other computer?
I'm assuming you have done this
1) Add binding to your IIS site, www.xxx.com or something
2) Set up the hostname on your domain so its accessible to all
3) Log in as Host and add a new portal alias to your portal
if it's http://localhost/xxx that you've set up the website on, and have not set up a non-localhost url for it, that will be the issue at hand.
To access it from another computer, you'll have to use the PortalAlias. Get access to your database and you'll be able to see all the portal aliases that your portal can use.