Discuz!NT官方社区

首页 » Discuz!NT交流与讨论 » 安装使用 » 编辑帖子的时候出现一下错误 过程 'fd_updatetopic' 需要参数 '@views',但未提供该参数。
madma - 2007-4-3 14:53:00
/”应用程序中的服务器错误。
过程 'fd_updatetopic' 需要参数 '@views',但未提供该参数。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.SqlClient.SqlException: 过程 'fd_updatetopic' 需要参数 '@views',但未提供该参数。

源错误:

[没有相关的源行]


源文件: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\5fe5c0fe\3d26e97c\dyhkmgtm.0.cs    行: 0

堆栈跟踪:

[SqlException: 过程 'fd_updatetopic' 需要参数 '@views',但未提供该参数。]
  System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
  System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +194
  Discuz.Common.Database.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) +78
  Discuz.Common.Database.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +88
  Discuz.Forum.TopicFactory.UpdateTopic(TopicInfo topicinfo) +1252
  Discuz.ForumPage.editpost.ShowPage() +5434
  Discuz.Forum.BasePage..ctor() +4103
  Discuz.ForumPage.editpost..ctor() +11
  ASP.editpost_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\5fe5c0fe\3d26e97c\dyhkmgtm.0.cs:0

[TargetInvocationException: 调用的目标发生了异常。]
  System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
  System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
  System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +164

[HttpException (0x80004005): 未能创建类型为“ASP.editpost_aspx”的页。]
  System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +340
  System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
  System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +698
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173


版本信息: Microsoft .NET Framework 版本:1.1.4322.2300; ASP.NET 版本:1.1.4322.2300
Sitwo - 2007-4-3 15:02:00
您好,您的存储过程未更新完整,请参照下面的存储过程进行修改

CREATE PROCEDURE dnt_updatetopic
    @tid int,
    @fid smallint,
    @iconid smallint,
    @title nchar(60),
    @typeid smallint,
    @readperm int,
    @price smallint,
    @poster char(20),
    @posterid int,
    @postdatetime smalldatetime,
    @lastpost smalldatetime,
    @lastposter char(20),
    @replies int,
    @displayorder int,
    @highlight varchar(500),
    @digest int,
    @rate int,
    @hide int,
    @poll int,
    @attachment int,
    @moderated int,
    @closed int,
    @magic int
AS
UPDATE dnt_topics SET
    [fid]=@fid,
    [iconid]=@iconid,
    [title]=@title,
    [typeid]=@typeid,
    [readperm]=@readperm,
    [price]=@price,
    [poster]=@poster,
    [posterid]=@posterid,
    [postdatetime]=@postdatetime,
    [lastpost]=@lastpost,
    [lastposter]=@lastposter,
    [replies]=@replies,
    [displayorder]=@displayorder,
    [highlight]=@highlight,
    [digest]=@digest,
    [rate]=@rate,
    [hide]=@hide,
    [poll]=@poll,
    [attachment]=@attachment,
    [moderated]=@moderated,
    [closed]=@closed,
    [magic]=@magic WHERE [tid]=@tid




GO


madma - 2007-4-3 15:10:00
好的 谢谢
1
查看完整版本: 编辑帖子的时候出现一下错误 过程 'fd_updatetopic' 需要参数 '@views',但未提供该参数。