更换模板出现问题,是什么原因
作者:动易网络
来源:本站原创
点击数: 次
发布时间:2008年04月09日
问题:在节点管理里修改默认的首页模板后就出现下面的错误,是什么原因?
Server Error in '/sf' Application.
必须声明标量变量 "@Request_id"。
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.Data.SqlClient.SqlException: 必须声明标量变量 "@Request_id"。
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:
[SqlException (0x80131904): 必须声明标量变量 "@Request_id"。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857610
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735222
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) +7
Microsoft.Practices.EnterpriseLibrary.Data.Database.DoExecuteReader(DbCommand command, CommandBehavior cmdBehavior) +134
Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DbCommand command) +258
PowerEasy.SqlServerDal.TemplateProc.LabelSql.GetSqlQuery(LabelInfo labelInfo) +459
PowerEasy.Templates.LabelTransform.SqlAttributesProc(LabelInfo labelInfo) +415
PowerEasy.Templates.LabelTransform.GetLabelDataTable(String labelId, Int32 cPage, LabelInfo inLabel) +1000
PowerEasy.Templates.TemplateTransform.DatasourceLabelProc(String getLabel, TemplateInfo templateInfo) +1578
PowerEasy.Templates.TemplateTransform.GetHtml(TemplateInfo templateInfo) +244
PowerEasy.WebSite.Default.Render(HtmlTextWriter writer) +326
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
|
解决:这是因为在更换网站首页模板时,选择了其它节点栏目首页的模板,就会出现上面的错误,上面的错误表示需要传入一个节点的ID,因此更换模板一定要设置对正确的模板。