The message in the Event Viewer:
Log Name: Application
Source: Application Error
Date: 17/03/2011 17:16:42
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: local
Description:
Faulting application name: devenv.exe, version: 9.0.30729.1, time stamp: 0x488f2b50
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17514, time stamp: 0x4ce7b8f0
Exception code: 0xe053534f
Fault offset: 0x0000b760
Faulting process id: 0x1b2c
Faulting application start time: 0x01cbe47ca767c4ca
Faulting application path: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 900eb868-50a9-11e0-9c2d-001f161db0b8
Every time I tried adding a service reference to a 4.0 WCF service this window popped and VS restarted. It only happened in one project which was a .Net 3.5 class library (in another such project the reference was added without a problem) and Add Web reference worked fine…
It was on a proof of concept deal so I didn’t want to get into the hassle of creating the proxy by hand (especially since the service’s code was in one TFS server and the client code was on another TFS server – couldn’t just add a project reference).
The solution in the end was pretty simple:
Start “Visual Studio 2008 Command Prompt” type:
svcutil http://localhost/ProjectName/SomeService.svc
Take the code generated and add that to your project.
Keywords: Error, VS2008