I want to create a test WCF service like this: http://www.mywebsite.com/admin/Service1.svc
- I create a new project -> WCF -> WCF Service Application
- I wrap the automatically created Service1.svc and IService1.vb in "Namespace Admin" like this:
Namespace Admin
Public Class Service1 Implements IService1 Public Sub New() End Sub Public Function GetData(ByVal value As Integer) As String Implements ... Return String.Format("You entered: {0}", value) End Function ' deleted rest of class End ClassEnd Namespace
But when I try to add a service reference to Service1.svc, I get this error:
There was an error downloading
'http://localhost:51826/Service1.svc/_vti_bin/ListData.svc/$metadata'.
If I remove my "Namespace Admin" and put Service1.svc into an "Admin" folder, then it works perfectly, but I need to structure my code since this is going to be a large project.
How can I use "Namespace" without it failing?