Visual Studio 更新服务引用时崩溃
Visual Studio crashes updating service reference
Visual Studio 更新服务引用时崩溃
我正在尝试更新 WPF 应用程序中的服务引用。我正在使用 VS Professional 2012 和 Windows 10 Pro。我是 运行 VS 管理员。当我尝试更新服务引用时,VS 无错误地崩溃并重新启动。它到达 "generating service reference client code" 并关闭。我尝试删除服务引用并添加新的 - 结果相同。查看配置也会导致 VS 在 window 关闭时崩溃。
我已经根据这篇文章(Service and Web Reference crashes Visual Studio)卸载了Git和ReSharper,但这并没有影响到问题。
我已经根据这篇文章 () 仔细检查了 .Net Framework 是否已安装。
我检查了事件查看器并看到了一些来自崩溃的消息(如下)。我重新安装了 VS 也没有帮助。
1.
Faulting application name: devenv.exe, version: 11.0.61219.0, time
stamp: 0x55cdaf21 Faulting module name: clr.dll, version: 4.6.1063.1,
time stamp: 0x5653653c Exception code: 0xc00000fd Fault offset:
0x0004e684 Faulting process id: 0x1ad8 Faulting application start
time: 0x01d15872619f85fd Faulting application path: C:\Program Files
(x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe Faulting
module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 38f0a9b9-f793-4ca7-a17c-45aa530dd6ba Faulting package full
name: Faulting package-relative application ID:
2.
The description for Event ID 0 from source Application cannot be
found. Either the component that raises this event is not installed on
your local computer or the installation is corrupted. You can install
or repair the component on the local computer.
If the event originated on another computer, the display information
had to be saved with the event.
The following information was included with the event:
Error Handler Exception: System.ServiceModel.CommunicationException:
There was an error reading from the pipe: The pipe has been ended.
(109, 0x6d). ---> System.IO.IOException: The read operation failed,
see inner exception. ---> System.ServiceModel.CommunicationException:
There was an error reading from the pipe: The pipe has been ended.
(109, 0x6d). ---> System.IO.PipeException: There was an error reading
from the pipe: The pipe has been ended. (109, 0x6d). at
System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean
haveResult, Int32 error, Int32 numBytes) --- End of inner exception
stack trace --- at
System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult
asyncResult) at
System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
--- End of inner exception stack trace --- at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)
at System.ServiceModel.Channels.StreamConnection.EndRead() --- End
of inner exception stack trace --- at
System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at
System.ServiceModel.Channels.TransportDuplexSessionChannel.EndTryReceive(IAsyncResult
result, Message& message) at
System.ServiceModel.Dispatcher.DuplexChannelBinder.EndTryReceive(IAsyncResult
result, RequestContext& requestContext) at
System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult
result, RequestContext& requestContext) \r\n at
System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at
System.ServiceModel.Channels.TransportDuplexSessionChannel.EndTryReceive(IAsyncResult
result, Message& message) at
System.ServiceModel.Dispatcher.DuplexChannelBinder.EndTryReceive(IAsyncResult
result, RequestContext& requestContext) at
System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult
result, RequestContext& requestContext)
the message resource is present but the message is not found in the
string/message table
3.
Fault bucket 107828029304, type 1 Event Name: APPCRASH Response: Not
available Cab Id: 0
Problem signature: P1: devenv.exe P2: 11.0.61219.0 P3: 55cdaf21 P4:
clr.dll P5: 4.6.1063.1 P6: 5653653c P7: c00000fd P8: 0004e684 P9:
P10:
Attached files: C:\Users...\AppData\Local\debuggee.mdmp
C:\Users...\AppData\Local\Temp\WER4208.tmp.WERInternalMetadata.xml
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_45af31cd21d42a3d1be8be633b512318962e469b_d353f4a4_09f661d4
Analysis symbol: Rechecking for solution: 0 Report Id:
38f0a9b9-f793-4ca7-a17c-45aa530dd6ba Report Status: 0 Hashed bucket:
4cda0bc664361674df99e37ac205f062
我寻找 "attached files" 但它们根本不存在。它们也没有隐藏。我能够找到 .wer 文件,但由于 Whosebug 的 30,000 个字符限制,我无法在此处包含它。
我使用以下命令提示符以日志模式启动 VS:"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /log c:\programdata\VS2012Log。它崩溃了,但没有生成日志。
最后,我撤消了所有更改并从源代码管理中提取了最新的更改。我是唯一一个在这个项目上工作的人,所以自从我上次能够更新服务引用以来没有任何变化。在没有任何更改的情况下,我尝试执行更新服务参考命令,但它仍然崩溃。我大约一个月前刚买了一台新电脑,这是我第一次尝试在新电脑上更新服务参考。
有人对我还能尝试什么有什么建议吗?
我终于能够让它工作了:
- 卸载Visual Studio
- 通过控制面板卸载 IIS - Add/Remove Windows 功能
- 重新安装Visual Studio
- 重新安装 IIS
- 安装Visual Studio更新
我仍然不确定问题出在哪里,但目前可以解决。
Visual Studio 更新服务引用时崩溃
我正在尝试更新 WPF 应用程序中的服务引用。我正在使用 VS Professional 2012 和 Windows 10 Pro。我是 运行 VS 管理员。当我尝试更新服务引用时,VS 无错误地崩溃并重新启动。它到达 "generating service reference client code" 并关闭。我尝试删除服务引用并添加新的 - 结果相同。查看配置也会导致 VS 在 window 关闭时崩溃。
我已经根据这篇文章(Service and Web Reference crashes Visual Studio)卸载了Git和ReSharper,但这并没有影响到问题。
我已经根据这篇文章 (
我检查了事件查看器并看到了一些来自崩溃的消息(如下)。我重新安装了 VS 也没有帮助。
1.
Faulting application name: devenv.exe, version: 11.0.61219.0, time stamp: 0x55cdaf21 Faulting module name: clr.dll, version: 4.6.1063.1, time stamp: 0x5653653c Exception code: 0xc00000fd Fault offset: 0x0004e684 Faulting process id: 0x1ad8 Faulting application start time: 0x01d15872619f85fd Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Report Id: 38f0a9b9-f793-4ca7-a17c-45aa530dd6ba Faulting package full name: Faulting package-relative application ID:
2.
The description for Event ID 0 from source Application cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Error Handler Exception: System.ServiceModel.CommunicationException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). ---> System.IO.PipeException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes) --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult) at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult) --- End of inner exception stack trace --- at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult) at System.ServiceModel.Channels.StreamConnection.EndRead() --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndTryReceive(IAsyncResult result, Message& message) at System.ServiceModel.Dispatcher.DuplexChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext) at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext) \r\n at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndTryReceive(IAsyncResult result, Message& message) at System.ServiceModel.Dispatcher.DuplexChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext) at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)the message resource is present but the message is not found in the string/message table
3.
Fault bucket 107828029304, type 1 Event Name: APPCRASH Response: Not available Cab Id: 0
Problem signature: P1: devenv.exe P2: 11.0.61219.0 P3: 55cdaf21 P4: clr.dll P5: 4.6.1063.1 P6: 5653653c P7: c00000fd P8: 0004e684 P9: P10:
Attached files: C:\Users...\AppData\Local\debuggee.mdmp C:\Users...\AppData\Local\Temp\WER4208.tmp.WERInternalMetadata.xml
These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_45af31cd21d42a3d1be8be633b512318962e469b_d353f4a4_09f661d4
Analysis symbol: Rechecking for solution: 0 Report Id: 38f0a9b9-f793-4ca7-a17c-45aa530dd6ba Report Status: 0 Hashed bucket: 4cda0bc664361674df99e37ac205f062
我寻找 "attached files" 但它们根本不存在。它们也没有隐藏。我能够找到 .wer 文件,但由于 Whosebug 的 30,000 个字符限制,我无法在此处包含它。
我使用以下命令提示符以日志模式启动 VS:"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /log c:\programdata\VS2012Log。它崩溃了,但没有生成日志。
最后,我撤消了所有更改并从源代码管理中提取了最新的更改。我是唯一一个在这个项目上工作的人,所以自从我上次能够更新服务引用以来没有任何变化。在没有任何更改的情况下,我尝试执行更新服务参考命令,但它仍然崩溃。我大约一个月前刚买了一台新电脑,这是我第一次尝试在新电脑上更新服务参考。
有人对我还能尝试什么有什么建议吗?
我终于能够让它工作了:
- 卸载Visual Studio
- 通过控制面板卸载 IIS - Add/Remove Windows 功能
- 重新安装Visual Studio
- 重新安装 IIS
- 安装Visual Studio更新
我仍然不确定问题出在哪里,但目前可以解决。