The Add Service Reference context menu is missing from Visual Studio and refreshing a service reference displays the error "The current project does not support service references. To enable Windows Communication Foundation support, change the target version of the Microsoft .NET Framework"

 In Visual Studio you notice that the "Add Service Reference" context menu is missing.

Refreshing an existing service reference shows the following error

"The current project does not support service references. To enable Windows Communication Foundation support, change the target version of the Microsoft .NET  Framework"




The solution to this was due to the solution .sln file.

Rename the solution file, create a new blank solution and re-add the project.

Rebuild and then the system works.









Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Windows Server 2019 desktop icons such as My Computer, Windows cannot access the specified device, path, or file.