This post by Zulfiqar Ahmed about the ConfigurationErrorsException when using Visual Studio saved my day.
This error suddently appeared when debugging a test case in Visual Studio and I didn't realize that this had something to do with activating the breakpoint on common language runtime exceptions.
Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts
Wednesday, February 11, 2009
Tuesday, January 27, 2009
WCF: custom tool error when adding a service reference in Visual Studio 2008
When adding a service reference in Visual Studio 2008, I came across a weird error. The reference was created successfully, but when I tried to build the project (a c# class library project), I always get a custom tool error ("the global element ... was defined in both ... and ..."). Thus I could not compile. Everything I tried didn't work. After reloading Visual Studio I got another error (Class ... is already defined in another namespace).
I finally solved this problem by deleting the Visual Studio project, creating a new project and adding the same service reference a second time.
I don't really know, what caused this error, but maybe it has something to do with changing the namespace or the service reference name after the first creation.
I finally solved this problem by deleting the Visual Studio project, creating a new project and adding the same service reference a second time.
I don't really know, what caused this error, but maybe it has something to do with changing the namespace or the service reference name after the first creation.
Labels:
.NET,
error,
Visual Studio,
Visual Studio 2008,
WCF
Subscribe to:
Posts (Atom)