1
I’m having trouble referencing WCF services in Visual Studio.
It does not generate any reference to the service classes to be referenced, the file Reference.vb
is almost empty:
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.0
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
I saw in old issues in Stackoverflow in English to uncheck the combo "Reuse types in referenced assemblies" and actually generates the ok file. But in addition to not like this approach for being a "hack", it generates some references with errors:
mistakes
When removing the "Global" prefix, compile errors disappear, but execution errors occur.
The Services are in a WCF 4.0 project, as is the Website I’m trying to reference them from.
If I give "Update Service Reference" to other current project references that are working, this error also happens.
I am using Windows 8.1 and error occurred in both Visual Studio 2013 and 2015 CTP.
How do I fix this problem??