Net core 2.1 elasticsearch working in development, it doesn't work in release