Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3.  
  4. <appSettings>
  5. <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  6. </appSettings>
  7. <system.web>
  8. <compilation debug="true" />
  9. </system.web>
  10. <!-- When deploying the service library project, the content of the config file must be added to the host's
  11. app.config file. System.Configuration does not support config files for libraries. -->
  12. <system.serviceModel>
  13. <services>
  14. <service name="CalculatorService.Calculator">
  15. <host>
  16. <baseAddresses>
  17. <add baseAddress = "http://localhost:8733/Design_Time_Addresses/CalculatorService/Calculator/" />
  18. </baseAddresses>
  19. </host>
  20. <!-- Service Endpoints -->
  21. <!-- Unless fully qualified, address is relative to base address supplied above -->
  22. <endpoint address="" binding="basicHttpBinding" contract="CalculatorService.ICalculator">
  23. <!--
  24. Upon deployment, the following identity element should be removed or replaced to reflect the
  25. identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
  26. automatically.
  27. -->
  28. <identity>
  29. <dns value="localhost"/>
  30. </identity>
  31. </endpoint>
  32. <!-- Metadata Endpoints -->
  33. <!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->
  34. <!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->
  35. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  36. </service>
  37. </services>
  38. <behaviors>
  39. <serviceBehaviors>
  40. <behavior>
  41. <!-- To avoid disclosing metadata information,
  42. set the values below to false before deployment -->
  43. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
  44. <!-- To receive exception details in faults for debugging purposes,
  45. set the value below to true. Set to false before deployment
  46. to avoid disclosing exception information -->
  47. <serviceDebug includeExceptionDetailInFaults="False" />
  48. </behavior>
  49. </serviceBehaviors>
  50. </behaviors>
  51. </system.serviceModel>
  52.  
  53. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement