COMMUNITY: How to properly ask a question on Forums
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Arvind Singh Baghel
595
1.7k
72.5k
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.
Reply
Answers (
1
)
WCF service Contract
XML security namespace from WCF code
"