近我者富 发表于 2024-5-19 15:34:08

异常日志这个什么问题啊

时间
17:06:59

日志类型
异常日志

异常调用堆栈
{"ClassName": "System.IO.FileNotFoundException","Message": "Could not find file 'C:\\WINDOWS\\TEMP\\sh\\Files\\GlobalSettings'.","Data": null,"InnerException": null,"HelpURL": null,"StackTraceString": "   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)   at System.IO.File.AsyncStreamReader(String path, Encoding encoding)   at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)   at Forguncy.Server2.Controllers.p.GetGlobalSettingAsync()   at Forguncy.Server2.Controllers.HomeController.b(Boolean A_0)   at Forguncy.Server2.Controllers.HomeController.b(String A_0, Boolean A_1)   at Forguncy.Server2.Controllers.HomeController.GetMetadata2Async(String pageName, Boolean isMobile)   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)   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()--- End of stack trace from previous location ---   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_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.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 Forguncy.Server2.KatanaMiddleware.CodeEditorMiddleware.InvokeAsync(HttpContext context)   at Forguncy.Server2.KatanaMiddleware.ProcessEngineMiddleware.InvokeAsync(HttpContext context, ICacheService cacheService)   at Forguncy.Server2.KatanaMiddleware.ReportsMiddleware.InvokeAsync(HttpContext context, ICacheService cacheService, IReportServerService reportServerService)   at Forguncy.KatanaMiddleware.ServerCommandMiddleware.InvokeAsync(HttpContext context)   at Forguncy.KatanaMiddleware.k.InvokeAsync(HttpContext context)   at Forguncy.KatanaMiddleware.j.InvokeAsync(HttpContext context)   at Forguncy.Server2.KatanaMiddleware.StartPageMiddleware.InvokeAsync(HttpContext context)   at ForguncyServerCommon.HttpHeaderMiddlewareBase.InvokeAsync(HttpContext context)   at Forguncy.KatanaMiddleware.q.InvokeAsync(HttpContext context)","RemoteStackTraceString": null,"RemoteStackIndex": 0,"ExceptionMethod": null,"HResult": -2147024894,"Source": "System.Private.CoreLib","WatsonBuckets": null,"FileNotFound_FileName": "C:\\WINDOWS\\TEMP\\sh\\Files\\GlobalSettings","FileNotFound_FusionLog": null}

查询参数
?pageName=90AC3BB5-87DF-4E25-B6C3-A78CC93DF159&isMobile=false&v2=551326208551326208551326208551326208

请求路径
/Home/GetMetadata2

请求Id
bc21695c-0e34-4a12-99c9-cd149e0a5bee

olookok 发表于 2024-5-19 15:36:35

看看是不是什么插件引起的

近我者富 发表于 2024-5-19 16:14:54

日志查看不出来吗

olookok 发表于 2024-5-19 19:27:25

近我者富 发表于 2024-5-19 16:14
日志查看不出来吗

日志要官方看了。咱看不懂

Joe.xu 发表于 2024-5-20 10:55:32

只通过这个报错来看,像是被服务器上的杀毒软件拦截了文件的访问,
这个造成的现象是什么呢,可以获取下全部日志我们结合分析

一看就会,超有用活字格技能:四十五,错误日志收集功能
https://gcdn.grapecity.com.cn/showtopic-52854-1-1.html
(出处: 葡萄城开发者社区)


豪~豪 发表于 2024-5-21 09:56:26

这个错误信息表示程序在尝试访问一个位于 C:\WINDOWS\TEMP\sh\Files\GlobalSettings 的文件时失败了,因为它找不到这个文件。错误类型是 System.IO.FileNotFoundException,这是一个常见的异常类型,当程序试图读取、写入或执行一个不存在的文件时会抛出。

Joe.xu 发表于 2024-5-22 09:07:45

感谢大家对活字格的支持
如果您的问题还未解决,欢迎跟帖补充;
如果您有新的问题,也欢迎创建新的求助帖呦。
页: [1]
查看完整版本: 异常日志这个什么问题啊