模板修改无法保存


问题描述

YES-CMS内容管理系统 IIS部署后,在后台管理中修改模板保存报错

错误信息如下:

 模板配置报错信息

错误。

处理您的请求时发生错误。

请求 ID: 00-7dfa09a9c8f1734ba555dd2f1d77d63c-9ffe9d439b07af49-00

请求路径: /Admin/TemplateManage/OnSubmit

异常信息: Access to the path 'D:\webs\www.yesdotnet.com\views\Home\index.cshtml' is denied.

堆栈跟踪: at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode) at YESCMS.Areas.Admin.Controllers.TemplateManageController.OnSubmit(EditModel parm) in E:\GZ\GZBlog\YESCMS\Areas\Admin\Controllers\TemplateManageController.cs:line 78 at lambda_method716(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at YESCMS.Startup.<>c__DisplayClass5_0.<<Configure>b__2>d.MoveNext() in E:\GZ\GZBlog\YESCMS\Startup.cs:line 93 --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

内部异常:

解决方案

文件夹

页面模板文件夹路径:Viewswwwroot\template 

SEO生成图片路径: wwwroot\images\seo

日志路径:logs

索引目录:SearchIndex

 

 

版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
管理员
评论列表

发表评论

评论内容
昵称:
关联文章

模板修改无法保存
asp.net core 断点调试无法修改代码
TT模板断点调试
TT模板断点调试
YESWin Winform开发框架 业务模块项目模板制作
DTCMS:html模板中格式化时间
修改用户密码
.NET Core 运行时T4模板使用,T4生成代码
EF并发处理,防止并发修改数据
ASP.NET Core MVC 在过滤器ActionFilter中保存页面的生成的html静态页面文件
YES-CMS 内容管理系统首页修改指南
明细页保存后刷新A页面数据
Devexpress GridControl表格无法鼠标滚轮上下滚动
git 放弃本地修改
企业项目实战.Net Core +FastReport教程一|制作报表模板
SQL表数据多的时候创建索引失败,提示:- 无法创建索引“idx_**”。执行超时已过期。完成操作之前已超时或服务器未响应。
YES-CMS内容管理系统 页面模板介绍
Python修改cmd窗口标题
【gitblit复制URL】 修改URL复制方式Flash插件被浏览器禁用解决办法
Razor模板编辑高亮CodeMirror和格式化JS-Beautify