When installing a new instance of nopCommerce 4.0 using Sql Server Express with windows authentication and sample:data true I intermittently get errors thrown from ScheduleTaskService.cs -> GetAllTasks(bool showHidden=false).
I either get a FatalException - this may be caused by the CLR exception on line 88. If I continue restarting then it will eventually run without throwing the exception.
Once installed, if I try to run Nop.Web with IISExpress (clean install, no changes to code or settings) I get a different exception on the same method and line of code.
System.ExecutionEngineException on line 88 (var tasks = query.ToList();)
one more report - https://www.nopcommerce.com/boards/t/49120/nopcommerce-400-beta-released-please-share-your-impressions.aspx?p=3#194798 and https://www.nopcommerce.com/boards/t/49120/nopcommerce-400-beta-released-please-share-your-impressions.aspx?p=4#194852
and the same topic https://github.com/nopSolutions/nopCommerce/issues/2455
@mmccann-umph
This helped me a lot.
Just go to "Tools -> Options -> Debugging" in VS2017 and Uncheck this "Enable Diagnostic Tools while debugging". This worked for me.
I am experiencing some other issues and I am curious if you have them too:
This issue is not of nopCommerce but of .NET. It was solved in 4.7.1 which don't plan to use (https://github.com/Microsoft/dotnet/blob/master/releases/net471/dotnet471-changes.md - "Fixed intermittent crash during GC with ETW memory tracing turned on"). Now the only solution is 'Enable Diagnostics Tools while debugging'
The only solution is disable 'Enable Diagnostics Tools while debugging' https://github.com/dotnet/coreclr/issues/10717#issuecomment-297469227