title: Error when consuming service : The type name ‘AAA' does not exist in the type ‘YYY.YYY’
body: <p>I'm trying to consume a WCF 4.0 service in my application. I built, tested, and deployed the service from the ground up. The service works in the WCF test client and can be consumed in any other test project I built. The problem is this one particular application... the only one that matters as it's the reason I built the service.</p>
  
  <p>When I build the application after referencing the service I get an error. The error is "The type name 'AAA' does not exist in the type 'YYY.YYY' ".</p>
  
  <p>The project consuming the service is named 'YYY.Web' and is in the 'YYY' namespace.</p>
  
  <p>The service was initially created in the 'YYY.ReportingService' namespace. It has been changed to a different namespace once this problem started. Is now in the 'MMM' namespace.</p>
  
  <p>I added a using directive 'YYY.Service1'. I also tried aliasing the using directive (using test = YYY.Service1)</p>
  
  <p>To make sure something wasn't messed up with my service and its namespaces, I built a new service with a single method. It takes a string parameter and returns "Hello, " and whatever string is passed. This services also works in the WCF test client and the couple of test projects I created. This service is in the SimpleTestService namespace, BasicService class, with a methiod named GetGreeting. Naming was done intentionally to avoid any possible naming collisions. The error still occurs with this new service.</p>
  
  <p>Any thoughts on this? Thanks!</p>