title: Service Missing for type 'Microsoft.Framework.Runtime.IApplicationEnvironment
body: <p>So right now trying to test out the new Visual Studio Code on OS X, but running into a myriad of issues.</p>
  
  <p>Right now been sort out the issue with the dnu command, but now having issues with:
   <code>dnx . kestrel</code></p>
  
  <p>This would be in relation to the <strong>Commands with Ease</strong> section from the <a href="https://code.visualstudio.com/Docs/ASPnet5" rel="nofollow">Visual Studio Code</a> and having the following error message shown in my terminal. So far followed everything step by step and still having issues.</p>
  
  <pre><code>System.InvalidOperationException: No service for type 'Microsoft.Framework.Runtime.IApplicationEnvironment' has been registered.
        at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService (IServiceProvider provider, System.Type serviceType) [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService[IApplicationEnvironment] (IServiceProvider provider) [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.AspNet.Hosting.HostingEngine..ctor (IServiceProvider fallbackServices) [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.AspNet.Hosting.Program.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
        at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&amp;)
        at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in &lt;filename unknown&gt;:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.Framework.ApplicationHost.Program.ExecuteMain (Microsoft.Framework.Runtime.DefaultHost host, System.String applicationName, System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.Framework.ApplicationHost.Program.Main (System.String[] args) [0x00000] in &lt;filename unknown&gt;:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in &lt;filename unknown&gt;:0 
        at Microsoft.Framework.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) [0x00000] in &lt;filename unknown&gt;:0 
        at dnx.host.Bootstrapper.RunAsync (System.Collections.Generic.List`1 args) [0x00000] in &lt;filename unknown&gt;:0
  </code></pre>
  
  <p>Hope you guys can help.</p>