siteserver / cms

SS CMS 基于 .NET Core,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
https://sscms.com
GNU Affero General Public License v3.0
3.66k stars 1.21k forks source link

Server Error in Application 对路径“D:\knowledge\T_系统首页模板.html”的访问被拒绝。 #2243

Open qimingzhenmafan opened 4 years ago

qimingzhenmafan commented 4 years ago

在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 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, Boolean useLongPath, Boolean checkHost) 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) 在 SiteServer.Utils.FileUtils.WriteText(String filePath, Encoding encoding, String content) 在 SiteServer.CMS.DataCache.TemplateManager.WriteContentToTemplateFile(SiteInfo siteInfo, TemplateInfo templateInfo, String content, String administratorName) 在 SiteServer.CMS.Provider.TemplateDao.Update(SiteInfo siteInfo, TemplateInfo templateInfo, String templateContent, String administratorName) 在 SiteServer.BackgroundPages.Cms.PageTemplateAdd.Submit_OnClick(Object sender, EventArgs e) 在 System.Web.UI.WebControls.Button.OnClick(EventArgs e) 在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

qimingzhenmafan commented 4 years ago

这是什么情况

xcdiv commented 4 years ago

给至少users用户加上写权限