Can't add service reference to any WCF service

I am using Visual Studio 2008 Service Pack 1 (SP1) for .NET 3.5 SP1 on Vista p>

Anytime I try to add a service reference for any WCF service, I get the error "Unable to load type" System.ServiceModel.FaultImportOptions "from assembly" System.ServiceModel, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = ... "

This happens when I try to connect to a local WCF service or to a network running on the Internet.

If I create an empty WCF service library and run it, it calls the WCF test client as expected, then errors with the same error displayed in the error dialog.

I searched for this issue and found several links for people having the same problem but not with a definitive fix. Some suggested uninstalling .NET 3.5 and reinstalling, which I did, but that didn't help.

I even removed .NET 3.5 SP1 and replaced it with .NET 3.5 only and still got the same behavior.

I tried to uninstall ALL .NET, but after uninstalling 3.5, I don't see a way to uninstall .NET 3 or 2. They show up in the list of programs, but there is no way to uninstall them. I found this article with explicit instructions on how to remove it on Vista, but the parts to remove for .NET 2 and 3 don't show up as stated.

All other .NET components are working fine. I haven't run into any issues with ASP.NET development or anything else - connecting to a WCF service seems to be the only problem. This is what I am currently focusing on in my research.

Any help would be much appreciated!

0


source to share


1 answer


I fixed the problem simply by reinstalling VS 2008 SP1. After installing and rebooting, the stuff seems to work correctly.



Phew!

0


source







All Articles