title: WcfSvcHost.exe access violation exception on every WCF project VS2013
body: <p>I have such problem in <strong>VS2013</strong>:</p>
  
  <p>Whenever I try to debug a WCF Library project I get an error on startup:</p>
  
  <blockquote>
    <p>An unhandled exception of type '<strong>System.AccessViolationException</strong>' occurred in <strong>WcfSvcHost.exe</strong>.</p>
  </blockquote>
  
  <p>It's the same even when trying debugging a fresh WCF project from template - does not work.
  Event viewer:</p>
  
  <blockquote>
    <p><em>.NET Runtime exception</em><br />
    App: WcfSvcHost.exe<br />
    Ver: v4.0.30319<br />Exception: System.AccessViolationException</p>
  </blockquote>
  
  <p>Stack:</p>
  
  <pre><code>in System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes(CriticalHandle handle, FileCompletionNotificationModes modes)
  in System.Net.HttpListener.CreateRequestQueueHandle()
  in System.Net.HttpListener.Start()
  in System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
  in System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
  in System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
  in System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
  in System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
  in System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
  in System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
  in System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
  in System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
  in Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(ServiceInfo info)
  in Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(System.String)
  in Microsoft.Tools.SvcHost.MainForm.theBackgroundWorker_DoWork(System.Object, System.ComponentModel.DoWorkEventArgs)
  in System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object)
  in System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, System.Object[], System.Object, System.Object[] ByRef)
  in System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink)
  in System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
  in System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
  in System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
  in System.Threading.ThreadPoolWorkQueue.Dispatch()`
  </code></pre>
  
  <p>Application error in event viewer:</p>
  
  <blockquote>
    <p>App causing error: WcfSvcHost.exe, ver: 12.0.21005.1, timestamp: 0x524fc58b<br />
    Module causing error: KERNELBASE.dll, ver: 6.3.9600.17278, timestamp: 0x53eebf2e<br />
    Exception code: 0xe0434352<br />
    Causing process ID: 0x8d8<br />
    Error application path: <strong>C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WcfSvcHost.exe</strong><br />
    Error module path: <strong>C:\Windows\system32\KERNELBASE.dll</strong><br />
    <strong>Windows: 8.1 Pro x64</strong>, all available updates in<br />
    <strong>VS 2013 Pro version 12.0.31101.00 Update 4</strong></p>
  </blockquote>
  
  <p>I will be very grateful for any help, banging my head against the wall with this..</p>