I have a simple service and the URL is being generated as:
http://localhost:1234/TestService/TestService.svc
Is there any way to get this to be:
http://localhost:1234/TestService.svc
i.e. to remove the Project name from the URL?
I have a simple service and the URL is being generated as:
http://localhost:1234/TestService/TestService.svc
Is there any way to get this to be:
http://localhost:1234/TestService.svc
i.e. to remove the Project name from the URL?
If the endpoint is implemented in code then you specify the URL in the call to ServiceHost.AddServiceEndpoint(...)
.
If the endpoint is implemented via configuration then in either the Web or App config look under elements <services><service><host><baseAddresses>
and <services><service><endpoint address=''>
.
The second is the relative address and will be appended to the base address.