简体   繁体   English

每个WCF项目VS2013上的WcfSvcHost.exe访问冲突异常

[英]WcfSvcHost.exe access violation exception on every WCF project VS2013

I have such problem in VS2013 : 我在VS2013中有这样的问题:

Whenever I try to debug a WCF Library project I get an error on startup: 每当我尝试调试WCF库项目时,启动时都会出现错误:

An unhandled exception of type ' System.AccessViolationException ' occurred in WcfSvcHost.exe . WcfSvcHost.exe中发生了类型为' System.AccessViolationException '的未处理异常。

It's the same even when trying debugging a fresh WCF project from template - does not work. 即使尝试从模板调试新的WCF项目,也是如此-不起作用。 Event viewer: 事件查看器:

.NET Runtime exception .NET运行时异常
App: WcfSvcHost.exe 应用:WcfSvcHost.exe
Ver: v4.0.30319 版本:v4.0.30319
Exception: System.AccessViolationException 异常:System.AccessViolationException

Stack: 堆:

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()`

Application error in event viewer: 事件查看器中的应用程序错误:

App causing error: WcfSvcHost.exe, ver: 12.0.21005.1, timestamp: 0x524fc58b 应用导致错误:WcfSvcHost.exe,版本:12.0.21005.1,时间戳:0x524fc58b
Module causing error: KERNELBASE.dll, ver: 6.3.9600.17278, timestamp: 0x53eebf2e 导致错误的模块:KERNELBASE.dll,版本:6.3.9600.17278,时间戳:0x53eebf2e
Exception code: 0xe0434352 异常代码:0xe0434352
Causing process ID: 0x8d8 引起进程ID:0x8d8
Error application path: C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\WcfSvcHost.exe 错误的应用程序路径: C:\\ Program Files(x86)\\ Microsoft Visual Studio 12.0 \\ Common7 \\ IDE \\ WcfSvcHost.exe
Error module path: C:\\Windows\\system32\\KERNELBASE.dll 错误模块路径: C:\\ Windows \\ system32 \\ KERNELBASE.dll
Windows: 8.1 Pro x64 , all available updates in Windows:8.1 Pro x64 ,所有可用更新
VS 2013 Pro version 12.0.31101.00 Update 4 VS 2013 Pro版本12.0.31101.00更新4

I will be very grateful for any help, banging my head against the wall with this.. 我将非常感激您的帮助,以此将我的头撞在墙上。

Had the same issue with HttpListener while using WebApi\\SignalR Owin on Windows 8. 在Windows 8上使用WebApi\\SignalR Owin时, HttpListener WebApi\\SignalR Owin相同的问题。

In my code I was Calling: WebApp.Start<Startup>(url); 在我的代码中,我正在调用: WebApp.Start<Startup>(url); Throws an access violation in System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes . System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes引发访问冲突。

Turns out that "some" third party programs are not compatible with Microsoft's ifs winsock lsps. 事实证明,“某些”第三方程序与Microsoft的ifs winsock lsps不兼容。 For me it was Lavasoft's "Web Companion". 对我来说,这是Lavasoft的“网络伴侣”。 (Which uninstalled fixed the issue) (已卸载解决了该问题)

See Handshake exception occurring when connecting to SQL Server Azure with .NET 4.5 请参阅使用.NET 4.5连接到SQL Server Azure时发生握手异常

SetFileCompletionNotificationModes seems to not work properly SetFileCompletionNotificationModes似乎无法正常工作

https://support.microsoft.com/en-us/kb/2568167 https://support.microsoft.com/en-us/kb/2568167

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM