我无法摆脱在IIS日志中看到的特定500 0 64
错误。我不断收到如下所示的错误
2019-06-06 13:05:23 W3SVC10 POST / JsEvents / Events -443-HTTP / 1.1 Mozilla / 5.0 +(Windows + NT + 10.0; + WOW64; + Trident / 7.0 ; + rv:11.0)+ like + Gecko 500 0 64 0 933 655
我正在使用Ahoy,这是我的ASP.NET MVC 5应用程序中的javascript事件跟踪库。用户在页面上执行的每个事件都会向POST
发送ajax JsEventsController
。 每天可能超过2万次。我已将其配置如下:
ahoy.configure({
urlPrefix: "",
visitsUrl: '@Url.Content("~/JsEvents/Visits")',
eventsUrl: '@Url.Content("~/JsEvents/Events")',
page: null,
platform: "Web",
useBeacon: true,
startOnReady: true,
trackVisits: false,
cookies: false,
cookieDomain: null,
headers: {},
visitParams: {},
withCredentials: false
});
ahoy.trackAll(false);
我接受事件的控制器在下面给出
[SessionState(System.Web.SessionState.SessionStateBehavior.ReadOnly)]
public class JsEventsController : Controller
{
private static readonly Logger logger = LogManager.GetLogger("EventLogger");
[HttpPost]
public EmptyResult Visits(string visit_token, string visitor_token, string referrer, string landing_page)
{
logger.Trace(visit_token + " " + visitor_token + " " + referrer + " " + landing_page);
return new EmptyResult();
}
[HttpPost]
public EmptyResult Events(string events_json, List<AhoyEvents> events)
{
if (events_json != null)
{
logger.Trace(events_json);
}
if (events != null)
{
logger.Trace(JsonConvert.SerializeObject(events));
}
return new EmptyResult();
}
}
我正在将NLog用于LogManager
,并且可以根据需要提供配置。
编辑
我正在使用 Windows Server 2008 R2 。 我按照@Lex Li的建议启用了FRT。请检查以下详细信息:
ModuleName: ManagedPipelineHandler
Notification: 128
HttpStatus: 500
HttpReason: Internal Server Error
HttpSubStatus: 0
ErrorCode: 2147943395
ConfigExceptionInfo:
Notification: EXECUTE_REQUEST_HANDLER
ErrorCode: The I/O operation has been aborted because of either a thread exit or an application request. (0x800703e3)