Exception -> InvalidOperationException

Fixes https://github.com/aspnet/DependencyInjection/issues/122

@Eilon @halter73