插入代码页面报错


YES-CMS内容管理系统,在后台 tinymce富文本编辑器,插入代码插件使用时报错

报错信息

 YES-CMS内容管理系统 《插入代码》报错详细信息

错误。

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

请求 ID: 00-9956239bb4aeea48ad196a6dbdebf3ad-2c397e38424ea042-00

请求路径: /admin/insertcode/index

异常信息: Object reference not set to an instance of an object.

堆栈跟踪: at AspNetCore.Areas_Admin_Views_InsertCode_Index.<ExecuteAsync>b__18_1() at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync() at AspNetCore.Areas_Admin_Views_InsertCode_Index.ExecuteAsync() in E:\GZ\GZBlog\YESCMS\Areas\Admin\Views\InsertCode\Index.cshtml:line 2 at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ActionContext actionContext, IView view, ViewDataDictionary viewData, ITempDataDictionary tempData, String contentType, Nullable`1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result) at Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|29_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- 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() --- End of stack trace from previous location --- 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)

内部异常:

 

请检查 YES-CMS内容管理系统 后台管理中是否配置了 代码高亮配置

代码高亮配置

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

发表评论

评论内容
昵称:
关联文章

插入代码页面
EFCore异步查询
EF异步查询ToListAsync
PC端编译 Empty block statement no-empty
使用队列(ConcurrentQueue)时获取队列运行
.NET Core Winform 打开窗体设计器
EFCore链接数据库
Python多线程中试用wmi
html发布到服务器后部分jpg:net::ERR_BLOCKED_BY_CLIENT
C#HTTP请求RestSharp.RestClient发起https请求
EF 分页 SQL2008 Featch Next
IIS中应用程序池自动停止,重启
WCF中常见的:The content type text
批量数据快速插入
.NET Core中使用编码GB2312‘GB2312‘ is not a supported encoding name 解决方案
window远程桌面连接:出现身份验证错误。要求的函数不受支持
VS .NET使用EF添加实体数据模型向导添加连接
Python windows服务: Installing service ALicense Error installing service: 拒绝访问
支付宝支付:4004,卖家不在设置的收款账户列表之中
ASP.NET Core MVC 在过滤器ActionFilter中保存页面的生成的html静态页面文件