zoukankan      html  css  js  c++  java
  • DNN安装报错The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.如何解决

    因为出错代码比较长,就放在后面了。

    出现"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
  • 相关阅读:
    poj1417(带权并查集+背包DP+路径回溯)
    poj1182(带权并查集)
    hdoj3038(带权并查集)
    poj1611(并查集简单应用)
    poj2236(并查集)
    莫队板子,例题
    离散化二维坐标
    P2921 [USACO08DEC]在农场万圣节Trick or Treat on the Farm
    树链剖分板子
    P2486 [SDOI2011]染色 区间合并+树链剖分(加深对线段树的理解)
  • 原文地址:https://www.cnblogs.com/DotNetNuke/p/1115448.html
Copyright © 2011-2022 走看看