重复的DNN7安装并现在获得“数据库中不存在域名xyz"; [英] Duplicated DNN7 installation and now getting "Domain Name xyz Does Not Exist In The Database"

查看:73
本文介绍了重复的DNN7安装并现在获得“数据库中不存在域名xyz";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的本​​地计算机上正在运行DNN7安装.这是出于开发目的,为此,我想使用IIS代替Cassini.该应用程序已绑定到HTTP端口81.即使UsePortNumber应用程序设置未打开 ,也一切正常.

I have a DNN7 installation running on my local machine. This is for development purposes, and I wanted to use IIS instead of Cassini for this. The app is bound to HTTP port 81. All is working well, even though the UsePortNumber appsetting is not turned on.

一切都很好.现在我想克隆我的设置来做一些实验.这是我采取的步骤:

All is well. Now I wanted to clone my setup to do some experiments. Here are the steps I took:

  1. 复制了网站文件夹.
  2. 创建一个指向该文件夹的新IIS应用程序,该应用程序绑定到端口82.
  3. 复制了DotNetNuke7数据库.

但是,当我尝试访问我的网站时,出现此错误:

However, when I try to access my site I get this error:

数据库中不存在域名xyz

Domain Name xyz Does Not Exist In The Database

在该消息后附有完整的说明.

With an entire explanation following that message.

我的处境和问题类似于其他问题.我已经尝试过那里提到的解决方案,但是添加UsePortNumber appSetting无效.我没想到它会以任何速度工作,因为我的常规实例已经在非标准端口(81)上运行,并且工作正常.

My situation and issue are similar to this other question. I've tried the solution mentioned there, but adding the UsePortNumber appSetting didn't work. I didn't expect it to work at any rate, since my regular instance is already running on a nonstandard port (81), and it's working fine.

所以我想也许在文件中的某个地方仍然提到了端口81,所以我使用Powershell来做到这一点:

So I figured perhaps port 81 is still mentioned somewhere in a file perhaps, so I used Powershell to do this:

dir *.* -recurse | select-string ":81" | select-object -unique

但是没有相关的事情出现.

But nothing relevant came up.

所以我的情况与另一个问题有所不同,但是我似乎无法弄清楚是什么.任何人都知道这是怎么回事吗?

So something is different in my scenario from the other question, but I can't seem to figure out what. Anyone got a clue what's going on here?

推荐答案

您可能已经忘记了以下一个或两个步骤:

You've probably forgotton one or two of these steps:

首先,不要忘记更改连接字符串,例如:

First, don't forget to change the connection string, e.g.:

  <add name="SiteSqlServer" 
       connectionString="Data Source=localhost;Database=DotNetNuke7Clone;User=somebody;Password=something" 
       providerName="System.Data.SqlClient"/>

或appSetting:

Or the appSetting:

  <add key="SiteSqlServer" 
       value="Data Source=localhost;Initial Catalog=DotNetNuke7Experiments;User ID=sa;Password=HagelBaksteen77!"/>

第二,更新门户网站别名表,例如:

Second, update the portal alias table, e.g.:

UPDATE PortalAlias SET HTTPAlias = REPLACE(HTTPAlias, ':81', ':82')
UPDATE PortalSettings SET SettingValue = REPLACE(SettingValue, ':81', ':82')

这篇关于重复的DNN7安装并现在获得“数据库中不存在域名xyz";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆