Thanks @Quan I'm trying your solution but as you can imagine, it's a long import.
I'm getting a new, equally cryptic message now, so perhaps the app config flag is working, but now this... (still on 'contentRepo.Save')
System.AccessViolationException
HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
I may need a new forum post for this one :-S
I'm getting an "The event manager has been stopped." error after about 15 minutes of running an import job.
Anyway to avoid this error? It's running from inside a Hangfire task instead of a scheduledJob.
error is throw when i call this code: