我无法摆脱500 0 64
在 IIS 日志中看到的这个特定错误。我不断收到错误,如下所示
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 事件跟踪库。这会将 ajax 发送POST
到JsEventsController
用户在页面上执行的每个事件。这可以超过每天 20k。我已将其配置如下:
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();
}
}
我正在使用 NLogLogManager
并且可以在需要时提供配置。
编辑
我正在使用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)