从其余URL中删除SVC [英] Removing SVC From Rest URL
本文介绍了从其余URL中删除SVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在web.config文件中进行了更改。但它不工作请帮帮我
< ; 规则 >
< rule name = RestStockService stopProcessing = true >
< 匹配 url = ^ rest / reststockservice /(.*)$\" / >
< action 类型 = 重写 url = rest / reststockservice.svc / {R:1} / >
< / rule >
< / rules >
解决方案
/ >
< action type = 重写 url = rest / reststockservice .svc / {R:1} / >
< / rule >
< / rules > 跨度>
I have made the changesin web.config file . But its not working Please help me
<rules>
<rule name="RestStockService" stopProcessing="true">
<match url="^rest/reststockservice/(.*)$"/>
<action type="Rewrite" url="rest/reststockservice.svc/{R:1}" />
</rule>
</rules>
解决方案
"/> <action type="Rewrite" url="rest/reststockservice.svc/{R:1}" /> </rule> </rules>
这篇关于从其余URL中删除SVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文