风讯官方论坛FoosunCMS交流区dotNETCMS安装使用发布碰到这个问题,晕了。

1  /  1  页   1 跳转 查看:734

标题: 发布碰到这个问题,晕了。

发布碰到这个问题,晕了。

□□□发布栏目
【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
引用
 

回复:发布碰到这个问题,晕了。

握手

抱歉!操作失败


操作描述:
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
引用
 

回复:发布碰到这个问题,晕了。

D:\dotNETCMS测试\send3333\Foosun.Web\manage\publish\site.aspx
引用
 

回复:发布碰到这个问题,晕了。

看来普遍存在啊。。。郁闷
引用
 

回复:发布碰到这个问题,晕了。

我也是 有问题了










在线小游戏
引用
 

回复:发布碰到这个问题,晕了。

访问被拒绝,设置一下文件夹的权限.将其设置成可读写状态.
引用
 

回复:发布碰到这个问题,晕了。

请问具体设置哪个文件夹?
引用
 

回复: 发布碰到这个问题,晕了。



引用:
原帖由 tw168 于 2008-5-3 15:21:00 发表
握手

抱歉!操作失败


操作描述:
System.UnauthorizedAccessException: 对路径的访问被拒绝。 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.__Error.WinIOErr......

发布栏目失败,从上面出错提示的信息来看,有两种可能,一是发布失败的栏目缺少对象,如不允许为空的地方为空,二是,生成文件的目录没有写的权限,请从上面两方面进行检查!
引用
 

回复:发布碰到这个问题,晕了。

你在本地测试就要把权限开足了
我测试的时候一般不会出现在IIS和APACHE上我把权限加到7
反正是本地测试完了就关了
引用
 

回复:发布碰到这个问题,晕了。

这种办法也可以!
引用
 

回复:发布碰到这个问题,晕了。

大家辛苦了
引用
 

回复:发布碰到这个问题,晕了。

我现在还没发布,就在本地测试,希望在发布的时候不要出现那么多的问题哦~~
越是残疾,越要美丽!
引用
 

回复:发布碰到这个问题,晕了。

只要你的参数设置正确,发布应该很顺利的。
引用
 

回复:发布碰到这个问题,晕了。

斑竹
引用
 

回复:发布碰到这个问题,晕了。

楼上的是不是来灌水的呀,帖子内容都不看的吗?随便乱跟帖
引用
 

回复:发布碰到这个问题,晕了。

出现这个问题的原因是,你的模板里使用了新闻浏览标签 或者 新闻导航,而这个模板并不是最终内容页,所以会导致出现这个问题。

如果不是最终内容页,是不能使用新闻浏览标签的

找到了问题,想必你应该知道如何解决了,呵呵
引用
 
1  /  1  页   1 跳转

版权所有 Foosun.NET  NewsCMS.com  NewsIDC.COM  Sitemap

Powered by Discuz!NT 2.0.1115    Copyright © 2001-2008 Comsenz Inc.
Processed in 0 second(s) (Cached).
返顶部