简体   繁体   English

Windows服务的System.ExecutionEngineException

[英]System.ExecutionEngineException With Windows Service

I have a windows service accesing other project (no matter what, cause It doesn't even start) 我有一个Windows服务访问其他项目(无论如何,因为它甚至没有启动)

The thing is that I have a System.ExecutionEngineException while starting the service (in this code) 问题是启动服务时,我有一个System.ExecutionEngineException (在此代码中)

protected override void OnStart(string[] args)
{
    const IConfig config = null;
    _weatherService = new WeatherService();
    _weatherService.setup(config);
    _weatherService.init();
    _weatherService.start();
}

I'm in a windows XP and .NET 3.5 (No, I'm not from the past) and I can't even start the service from a Console Application. 我使用的是Windows XP和.NET 3.5(不,我不是从过去),甚至无法从控制台应用程序启动该服务。 Do you know how to solve it? 你知道如何解决吗? (If you need any more info, please just ask for it) (如果您需要更多信息,请索取)

Thank you so much guys ☺ 非常感谢你们☺

Maybe try disabling concurrent garbage dumping -- seen here: http://msdn.microsoft.com/en-us/library/at1stbec(v=vs.90).aspx 也许尝试禁用并发垃圾转储-参见此处: http : //msdn.microsoft.com/zh-cn/library/at1stbec(v=vs.90).aspx

If you're program is performance heavy, then concurrent garbage collection's memory movement could throw this exception. 如果您的程序性能很高,则并发垃圾回收的内存移动可能会引发此异常。

Why does concurrent GC sometimes cause ExecutionEngineException (per MSDN)? 为什么并发GC有时会导致ExecutionEngineException(根据MSDN)?

http://msdn.microsoft.com/en-us/library/system.executionengineexception(v=vs.90).aspx http://msdn.microsoft.com/zh-CN/library/system.executionengineexception(v=vs.90).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM