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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.