views:

23

answers:

1

In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But the option for "Add Service Reference" is also not there. Gone. Disappeared.

Closed and re-opened the solution. Restarted VS2010 Ultimate. No dice. Anyone run across this?

A: 

I don't know how this happends in the first place, so we don't know the cause yet, but I found a solution to the problem.

Open your *.csproj file in Notepad or Textpad or something like that. Find where it has the tag. Replace that tag with this:

<ProjectTypeGuids>{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Close and re-open the project and the option to add service references will be usable.

Rap