1: <?xml version="1.0"?>
2: <configuration>
3: <system.diagnostics>
4: <trace>
5: <listeners>
6: <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
7: <filter type=""/>
8: </add>
9: </listeners>
10: </trace>
11: </system.diagnostics>
12: <appSettings/>
13: <connectionStrings/>
14: <system.web>
15: <compilation debug="true" targetFramework="4.0">
16: </compilation>
17: <!--
18: The <authentication> section enables configuration
19: of the security authentication mode used by
20: ASP.NET to identify an incoming user.
21: -->
22: <authentication mode="Windows"/>
23: <!--
24: The <customErrors> section enables configuration
25: of what to do if/when an unhandled error occurs
26: during the execution of a request. Specifically,
27: it enables developers to configure html error pages
28: to be displayed in place of a error stack trace.
29:
30: <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
31: <error statusCode="403" redirect="NoAccess.htm" />
32: <error statusCode="404" redirect="FileNotFound.htm" />
33: </customErrors>
34: -->
35: <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
36: <machineKey decryption="AES" decryptionKey="0CA3EFAF0F7A5E7A62681C0BF656EE0ECE31ACEE3E1023BA3FAD20EA5F199DE8" validation="SHA1" validationKey="FCF71343240C6E081AF3C9F3C10C3F3C11B903359DE62168764FF0DCE537184F0535D5D9AD66DEDC97DC1ABFF7FA540B4DFD82E5BB196B95D15FF81F75AD5328" />
37: </system.web>
38: <!--
39: The system.webServer section is required for running ASP.NET AJAX under Internet
40: Information Services 7.0. It is not necessary for previous version of IIS.
41: -->
42: <system.serviceModel>
43: <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
44: <services>
45: <service behaviorConfiguration="SumServiceWebService.CloudWCFServiceBehavior"
46: name="SumServiceWebService.SumService">
47: <endpoint address=""
48: binding="webHttpBinding"
49: behaviorConfiguration="JsonEndpointBehavior"
50: contract="SumServiceWebService.ISumService" />
51: <endpoint address="mex"
52: binding="mexHttpBinding"
53: contract="IMetadataExchange" />
54: </service>
55: </services>
56: <behaviors>
57: <serviceBehaviors>
58: <behavior name="SumServiceWebService.CloudWCFServiceBehavior">
59: <!--The useRequestHeadersForMetadataAddress behavior is contained in the KB981002- WCF: Hotfix rollup upodate. This behavior is required for WCF to correctly serve metadata when behind a load balancer (which is the case in Windows Azure)-->
60: <useRequestHeadersForMetadataAddress>
61: <defaultPorts>
62: <add scheme="http"
63: port="81"/>
64: <add scheme="https"
65: port="444"/>
66: </defaultPorts>
67: </useRequestHeadersForMetadataAddress>
68: <serviceMetadata httpGetEnabled="true"/>
69: <serviceDebug includeExceptionDetailInFaults="true"/>
70: </behavior>
71: </serviceBehaviors>
72: <endpointBehaviors>
73: <behavior name="JsonEndpointBehavior">
74: <webHttp/>
75: </behavior>
76: </endpointBehaviors>
77: </behaviors>
78:
79: </system.serviceModel>
80:
81: </configuration>