Arvind Singh

Arvind Singh

  • 320
  • 5.7k
  • 775.7k

Ho to remove .svc from url in wcf rest service in .Net 3.5

Sep 2 2016 2:46 AM
 
Hi
 
I want to remove the extension from service url, shown below  
 http://localhost:58957/FOSUpdateAML.svc 
remove .svc i want url only like this  http://localhost:58957/FOSUpdateAML
 
 i dont want to rewrite url in IIS, i want to do this from my service or config file i used this
<serviceHostingEnvironment>
<serviceActivations>
<add factory="System.ServiceModel.Activation.ServiceHostFactory"
relativeAddress="/YourService"
service="SomeNamespace.YourService"/>
</serviceActivations>
</serviceHostingEnvironment>
 
but it is giving error as the element serviceHostingEnvironment has invalid child element serviceActivations.
 

Answers (1)