maxant - 2008-5-3 14:57:00
□□□发布栏目
【ID】:278219501280
【错误描述:】
System.Data.SqlClient.SqlException: 被准备语句 '(@NewsID nvarchar(4000))Select [Id],[NewsID],[NewsType],[OrderID' 需要参数 @NewsID,但未提供该参数。
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
在 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
在 System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
在 System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
在 Foosun.DALProfile.DbHelper.ExecuteReader(String connectionString, CommandType cmdType, String cmdText, DbParameter[] commandParameters) 位置 D:\dotNETCMS测试\send3333\Foosun.DALProfile\DbHelper.cs:行号 105
在 Foosun.DALProfile.DbHelper.ExecuteReader(CommandType cmdType, String cmdText, DbParameter[] commandParameters) 位置 D:\dotNETCMS测试\send3333\Foosun.DALProfile\DbHelper.cs:行号 83
在 Foosun.SQLServerDAL.Publish.GetNewsDetail(Int32 id, String newsid) 位置 D:\dotNETCMS测试\send3333\Foosun.SQLServerDAL\Publish.cs:行号 835
在 Foosun.Publish.LabelMass.getNewsInfo(Int32 ID, String NewsID) 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Label\LabelMass_Method4.cs:行号 2485
在 Foosun.Publish.LabelMass.Analyse_ReadNews(Int32 id, Int32 TitleNumer, Int32 ContentNumber, Int32 NaviNumber, String str_Style, String styleid, Int32 currentPageNum, Int32 EndPageNum, Int32 NewsTF) 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Label\LabelMass_Method4.cs:行号 1159
在 Foosun.Publish.LabelMass.Parse() 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Label\LabelMass.cs:行号 245
在 Foosun.Publish.CustomLabel.ParseLabelConetent() 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Label\CustomLabel.cs:行号 68
在 Foosun.Publish.CustomLabel.MakeHtmlCode() 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Label\CustomLabel.cs:行号 81
在 Foosun.Publish.Template.ReplaceLabels() 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Template.cs:行号 153
在 Foosun.Publish.UltiPublish.replaceTemp(Template tempRe, Boolean existFlag, String savePath, String id, String ContentType) 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\UltiPublish.cs:行号 621
在 Foosun.Publish.UltiPublish.publishSingleClass(String classID, String datalib) 位置 D:\dotNETCMS测试\send3333\Foosun.Publish\UltiPublish.cs:行号 555
【UserName】 【Time】2008-5-3 0:52:52
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
居然有本地位置如:位置 D:\dotNETCMS测试\send3333\Foosun.Publish\Label\LabelMass.cs:行号 245
受不了。怎么办 ,是最新的SP1
tw168 - 2008-5-3 15:21:00
握手
抱歉!操作失败
操作描述:
System.UnauthorizedAccessException: 对路径的访问被拒绝。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.__Error.WinIOError() 在 System.IO.File.Move(String sourceFileName, String destFileName) 在 Foosun.Web.manage_publish_site.Button1_Click(Object sender, EventArgs e) 位置 D:\dotNETCMS测试\send3333\Foosun.Web\manage\publish\site.aspx.cs:行号 327 在 System.Web.UI.WebControls.Button.OnClick(EventArgs e) 在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 在 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
返回上一级
dotNETCMS v1.0sp1(r) Help center Forum
tw168 - 2008-5-3 15:38:00
D:\dotNETCMS测试\send3333\Foosun.Web\manage\publish\site.aspx
maxant - 2008-5-3 16:14:00
看来普遍存在啊。。。郁闷
liangjian0 - 2008-5-3 16:19:00
我也是 有问题了
在线小游戏
womode - 2008-5-3 18:26:00
访问被拒绝,设置一下文件夹的权限.将其设置成可读写状态.
fengso - 2008-5-3 21:38:00
请问具体设置哪个文件夹?
jxspace - 2008-5-4 00:50:00
原帖由 tw168 于 2008-5-3 15:21:00 发表
握手
抱歉!操作失败
操作描述:
System.UnauthorizedAccessException: 对路径的访问被拒绝。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.__Error.WinIOErr......
发布栏目失败,从上面出错提示的信息来看,有两种可能,一是发布失败的栏目缺少对象,如不允许为空的地方为空,二是,生成文件的目录没有写的权限,请从上面两方面进行检查!
atelas - 2008-5-5 23:05:00
你在本地测试就要把权限开足了
我测试的时候一般不会出现在IIS和APACHE上我把权限加到7
反正是本地测试完了就关了
jxspace - 2008-5-5 23:40:00
这种办法也可以!
womode - 2008-5-6 11:13:00
大家辛苦了:default51:
缘猪笔 - 2008-5-6 11:18:00
:default2: 我现在还没发布,就在本地测试,希望在发布的时候不要出现那么多的问题哦~~
jxspace - 2008-5-6 20:15:00
只要你的参数设置正确,发布应该很顺利的。
womode - 2008-5-7 09:13:00
斑竹:default69:
CSharp_ds - 2008-5-7 10:02:00
楼上的是不是来灌水的呀,帖子内容都不看的吗?随便乱跟帖:default3:
shareking - 2008-5-7 10:39:00
出现这个问题的原因是,你的模板里使用了新闻浏览标签 或者 新闻导航,而这个模板并不是最终内容页,所以会导致出现这个问题。
如果不是最终内容页,是不能使用新闻浏览标签的
找到了问题,想必你应该知道如何解决了,呵呵:default6: :default6: