将博CMS论坛

注册

 

发新话题 回复该主题

写日志权限问题 [复制链接]

1#
访问后台http://localhost/admin/default.aspx 出现如下错误,请问老大为什么啊
当我部署到远程服务器上面,在后台做操作,生成目录或者 其它操作 也出现权限问题:
我用的是Server 2008操作系统

Offending URL: http://localhost/admin/default.aspxSource: mscorlibMessage: Access to the path 'C:\Sites\_data\log\hacker_20120722.log' is denied.Stack trace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)   at System.IO.StreamWriter.CreateFile(String path, Boolean append)   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)   at JumboTCMS.UI.BasicPage.SaveVisitLog(Int32 _type, Int32 _second, String _logfilename)   at JumboTCMS.UI.BasicPage.CheckFormUrl()   at JumboTCMS.UI.AdminCenter.chkPower(String s, String pageType)   at JumboTCMS.UI.AdminCenter.Admin_Load(String powerNum, String pageType)   at JumboTCMS.WebFile.Admin._index.Page_Load(Object sender, EventArgs e)   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)   at System.Web.UI.Control.OnLoad(EventArgs e)   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
最后编辑xbyhoo 最后编辑于 2012-07-23 22:29:54
分享 转发
TOP
2#

回复 1楼xbyhoo的帖子

问题已经解决,需要在USERS 修改和写入权限
TOP
发新话题 回复该主题