System.NullReferenceException: Object reference not set to an instance of an object. at Careers.WebAPI.Controllers.PositionController.GetPositionByCode(String code, dbCareers dbc) at ECMWebAPI.CustomMiddleware.GetStrByCode(String name, String idd) at ECMWebAPI.CustomMiddleware.GetContentByCode(HttpContext context, String name1, String id) at ECMWebAPI.CustomMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) HEADERS ======= Accept: */* Host: www.careers.philips.com.cn User-Agent: claudebot X-Forwarded-For: 18.223.107.149 X-Forwarded-Cluster: waf, EagleEye-TraceId: ac11000117134595714808074e0039 eagleeye-rpcid: 0.1 X-Real-IP: 18.223.107.149 X-True-IP: 18.223.107.149 X-Client-IP: 18.223.107.149 Web-Server-Type: nginx WL-Proxy-Client-IP: 18.223.107.149 X-Forwarded-Proto: https X-Sinfo: on x5-uuid: c046340910bd2edd750b757c572f19b1