WCF部署到IIS不使用svc文件
<?xml version="1.0" encoding="utf-8"?>
<configuration>
? <system.web>
??? <compilation debug="false" targetFramework="4.0" />
? </system.web>
? <system.serviceModel>
??? <behaviors>
????? <serviceBehaviors>
??????? <behavior>
????????? <!-- 為避免泄漏元數(shù)據(jù)信息,請(qǐng)?jiān)诓渴鹎皩⒁韵轮翟O(shè)置為 false 并刪除上面的元數(shù)據(jù)終結(jié)點(diǎn) -->
????????? <serviceMetadata httpGetEnabled="true"/>
????????? <!-- 要接收故障異常詳細(xì)信息以進(jìn)行調(diào)試,請(qǐng)將以下值設(shè)置為 true。在部署前設(shè)置為 false 以避免泄漏異常信息-->
????????? <serviceDebug includeExceptionDetailInFaults="false"/>
??????? </behavior>
????? </serviceBehaviors>
??? </behaviors>
??? <serviceHostingEnvironment multipleSiteBindingsEnabled="true" >
????? <serviceActivations>
??????? <!--服務(wù)類以及相對(duì)地址http://localhost:1298/WCFService1/CalculateService.svc-->
??????? <add relativeAddress="CalculateService.svc" service="CarRentalService.CalculateService"? />
????? </serviceActivations>
??? </serviceHostingEnvironment>
? </system.serviceModel>
? <system.webServer>
??? <modules runAllManagedModulesForAllRequests="true"/>
? </system.webServer>
?
</configuration>
轉(zhuǎn)載于:https://www.cnblogs.com/feidaochuanqing/p/3371034.html
總結(jié)
以上是生活随笔為你收集整理的WCF部署到IIS不使用svc文件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: javax.imageio.IIOExc
- 下一篇: IIS 7.0 部署MVC