错误域名onlinethailandbooking.com在数据库中不存在

时间:2011-07-07 07:41:16

标签: asp.net dotnetnuke

我正在将我的网站转移到另一台服务器上。

我也支持网站和数据库的备份。现在,当我在新服务器上配置它时,它首先显示升级到数据库,然后显示错误

域名onlinethailandbooking.com在数据库中不存在

DotNetNuke支持来自单个数据库/代码库的多个门户。它通过将客户端浏览器Request的URL转换为Portals数据库表中的有效PortalID来实现此目的。以下步骤描述了该过程:

Web Server Processing
    When a web server receives a Request from a client browser, it compares the file name extension on the target URL resource to its Application Extension Mappings defined in IIS.
    Based on the corresponding match, IIS then sends the Request to the defined Executable Path ( aspnet_asapi.dll in the case of ASP.NET Requests ).
    The aspnet_isapi.dll engine processes the Request in an ordered series of events beginning with Application_BeginRequest.


HttpModule.URLRewrite OnBeginRequest ( UrlRewriteModule.vb )
    The Request URL is parsed based on the "/" character
    A Domain Name is constructed using each of the relevant parsed URL segments.

    Examples:

    URL: http://www.domain.com/default.aspx = Domain Name: www.domain.com
    URL: http://209.75.24.131/default.aspx = Domain Name: 209.75.24.131
    URL: http://localhost/DotNetNuke/default.aspx = Domain Name: localhost/DotNetNuke
    URL: http://www.domain.com/virtualdirectory/default.aspx = Domain Name: www.domain.com/virtualdirectory
    URL: http://www.domain.com/directory/default.aspx = Domain Name: www.domain.com/directory

    Using the Domain Name, the application queries the database ( Portals table - PortalAlias field ) to locate a matching record.

    Note: If there are multiple URLs which correspond to the same portal then the PortalAlias field must contain each valid Domain Name in a comma seperated list.

    Example:

    URL: http://localhost/DotNetNuke/default.aspx
    URL: http://MACHINENAME/DotNetNuke/default.aspx
    URL: http://209.32.134.65/DotNetNuke/default.aspx
    PortalAlias: localhost/DotNetNuke,MACHINENAME/DotNetNuke,209.32.134.65/DotNetNuke

    Note: If you are installing the application to a remote server you must modify the PortalAlias field value for the default record in the Portals table according to the rules defined above.

我查看数据库dbo.portalalises但是只有2个门户网站条目,但我有3个门户网站..我认为它不能自动生成门户网站ID?

如何解决这个错误?

2 个答案:

答案 0 :(得分:0)

  1. 检查您的网络文件夹的权限是否与您的网站在新主机上运行的AppPool的权限相匹配
  2. 验证您的数据库连接和权限
  3. 验证数据库中PortalAlias表中的条目是否适合您的新主机

答案 1 :(得分:0)

对于遇到此问题的任何人,在确定我已更新" Portal Alias"之后,我遇到了同样的问题。 db中的表,有一个HTTP别名(对于我的本地主机,我将它设置为localhost:8089,这与我在DNN网站的IIS绑定中设置的相同),门户ID为0(作为我的门户网站ID)是0),我正在检查以确保我已经更新了带有数据库连接字符串的web.config文件,但后来我意识到web.config中有两个数据库连接点,我错过了其中一个。因此,请确保将两个连接更新为:

1) <connectionStrings>
2) <appSettings>

希望这有帮助。