Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Ho to remove .svc from url in wcf rest service in .Net 3.5
Arvind Singh Baghel
Sep 2 2016 2:46 AM
336
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
WCF service Contract
XML security namespace from WCF code