AspNetCore.Views_Home_servicedetail.ExecuteAsync() in servicedetail.cshtml
, line 58
servicedetail.cshtml
Startup.cs
AutoLogoutPortal.cs
SqlDefense.cs
SelfAdaptive.cs
System.NullReferenceException: Object reference not set to an instance of an object. at AspNetCore.Views_Home_servicedetail.ExecuteAsync() in E:\Git项目\西南交通大学二期2.2\Dalib2.2\SmartLibrary.Web\CQVIP.SmartLibrary.Web\Views\Home\servicedetail.cshtml:line 58 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(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.Internal.ResourceInvoker.InvokeResultAsync(IActionResult result) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResultFilterAsync[TFilter,TFilterAsync]() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResultExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeResultFilters() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync() at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at SmartLibrary.Web.Startup.<>c.<<Configure>b__10_1>d.MoveNext() in E:\Git项目\西南交通大学二期2.2\Dalib2.2\SmartLibrary.Web\CQVIP.SmartLibrary.Web\Startup.cs:line 468 --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at SmartLibrary.Middleware.AutoLogout.AutoLogoutPortal.Invoke(HttpContext context) in E:\Git项目\西南交通大学二期2.2\Dalib2.2\SmartLibrary.Core\SmartLibrary.Middleware\AutoLogout\AutoLogoutPortal.cs:line 82 at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at SmartLibrary.Middleware.SqlDefense.SqlDefense.Invoke(HttpContext context) in E:\Git项目\西南交通大学二期2.2\Dalib2.2\SmartLibrary.Core\SmartLibrary.Middleware\SqlDefense\SqlDefense.cs:line 50 at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at SmartLibrary.Middleware.SelfAdaptive.SelfAdaptive.Invoke(HttpContext context) in E:\Git项目\西南交通大学二期2.2\Dalib2.2\SmartLibrary.Core\SmartLibrary.Middleware\SelfAdaptive\SelfAdaptive.cs:line 102 at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
No QueryString data.
Variable | Value |
---|---|
Accept | */* |
Connection | Keep-Alive |
Host | web |
MS-ASPNETCORE-TOKEN | 07f4e488-bbb2-4fa8-b71a-fe9eade8d038 |
Referer | https://www.lib.swjtu.edu.cn/pagelinklog/1019/5753 |
REMOTE-HOST | 44.222.82.119 |
User-Agent | claudebot |
X-Forwarded-For | 44.222.82.119 |
X-Original-For | 127.0.0.1:55357 |
X-Original-Proto | http |
X-Real-IP | 44.222.82.119 |