DNN安装报错-The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.如何解决

本文解决DNN安装过程中因异常终止导致的dbo.GetPortalAliasByPortalID不存在错误。探讨了可能的原因,如连接字符串配置错误、Startkit安装模式不当等,并提供了排查思路。
因为出错代码比较长,就放在后面了。

出现"The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist."报错的情况很多
  • 只要是安装过程中出现异常终止,然后我们又试图访问没有安装好的网站(因为是装了一半终止的,所以DNN不会再触发安装的过程);
  • 或者其它的设置导致DNN不能正常运行就有可能出现这个报错。
所以我们不要尝试去还原dbo.GetPortalAliasByPortalID,而应该去排查那个地方引起这个报错。比如:连接字符串是不是设置正确, Startkit的安装是不是选择了"Auto"模式,SQL 是不是正常启动,等等。



Server Error in '/DotNetNuke4.8.2' Application.

The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.]
System.Data.SqlClient.SqlCommand.DeriveParameters() +2973
System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) +72
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) +213
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +304
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +154
Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) +36
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) +200
DotNetNuke.Data.SqlDataProvider.GetPortalAliasByPortalID(Int32 PortalID) +87
DotNetNuke.Entities.Portals.PortalAliasController.GetPortalAliasByPortalID(Int32 PortalID) +35
DotNetNuke.Entities.Portals.PortalSettings.GetPortalAliasLookup() +74
DotNetNuke.Entities.Portals.PortalSettings.GetPortalAliasInfo(String PortalAlias) +14
DotNetNuke.HttpModules.UrlRewriteModule.RewriteUrl(HttpApplication app) +3346
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +1193
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +138
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65
下载适用于 Linux 系统的 DNN v8.1.1.33 版本安装程序的具体操作可以按照以下方式完成: ### 下载前准备 确保目标系统满足软件运行所需的依赖环境。例如,如果需要特定库的支持,则应提前确认这些库已正确安装。对于某些深度学习框架或工具包而言,可能还需要额外配置 GPU 驱动及相关 CUDA 工具链。 #### 安装必要的依赖项 以 OpenCV 的安装为例,在 Debian 或 Ubuntu 类型的操作系统上可以通过 `dpkg` 命令手动安装 `.deb` 文件[^1]: ```bash sudo dpkg -i libopencv-contrib4.2_4.2.0+dfsg-5_amd64.deb ``` 此命令会尝试将指定版本的 OpenCV 库及其附加模块部署到当前环境中。如果有未解决的依赖关系,可通过执行以下命令自动修复缺失组件: ```bash sudo apt-get install -f ``` 针对 Qt Creator 开发环境初始化脚本的情况,需创建并赋予其可执行权限以便于后续调用[^2]: ```bash #!/bin/sh export QT_HOME=/opt/Qt5.9.9/Tools/QtCreator/bin/ $QT_HOME/qtcreator $* ``` 随后通过更改模式位来激活该脚本文件: ```bash sudo chmod a+x /usr/bin/qtcreator ``` --- ### 获取 DNN 软件包 访问官方发布页面或者可信第三方资源站点定位至所需版本号 (v8.1.1.33),通常这类预编译二进制分发版会被命名为类似于 **dnn-v8.1.1.33-linux-x64-installer.run** 的形式。假设存在这样的链接地址可以直接用于 wget 或 curl 请求获取本地副本。 以下是基于终端的方式实现远程镜像同步的方法之一: ```bash wget https://example.com/path/to/dnn-v8.1.1.33-linux-x64-installer.run ``` 替换上述 URL 地址为实际有效的源路径即可开始传输过程。 完成后验证校验码(MD5, SHA256 等哈希值),保证数据一致性无误后再继续下一步骤。 --- ### 执行安装流程 给予刚下载下来的安装器适当权限之后便可启动图形化引导界面完成最终设置工作。 ```bash chmod u+x dnn-v8.1.1.33-linux-x64-installer.run && ./dnn-v8.1.1.33-linux-x64-installer.run ``` 遵循屏幕提示逐步填写各项参数直至结束整个环节为止。 有关语音信号处理领域内的主流算法概述提到过几种经典方案比如 HMM 和 GMM 组合运用实例][^[^35];另外关于 Kaldi 平台内部结构解析也提及到了训练集与测试集中涉及的关键元数据描述标准[^4]. ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值