App.config 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <startup>
  4. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
  5. </startup>
  6. <connectionStrings>
  7. <add name="gov_ls" providerName="MySql.Data.MySqlClient" connectionString="Database=gov_ls;Data Source=127.0.0.1;UserId=root;Password=root;pooling=false;CharSet=utf8;Port=3306;allow zero datetime=true"/>
  8. </connectionStrings>
  9. <system.serviceModel>
  10. <bindings>
  11. <basicHttpBinding>
  12. <binding name="BasicHttpBinding_ICodeService"/>
  13. </basicHttpBinding>
  14. </bindings>
  15. <behaviors>
  16. <endpointBehaviors>
  17. <behavior name="NewBehavior0">
  18. <webHttp helpEnabled="true" defaultBodyStyle="Wrapped"/>
  19. </behavior>
  20. </endpointBehaviors>
  21. <serviceBehaviors>
  22. <behavior name="NewBehavior0">
  23. <serviceMetadata httpGetEnabled="true"/>
  24. <serviceDebug includeExceptionDetailInFaults="true"/>
  25. </behavior>
  26. </serviceBehaviors>
  27. </behaviors>
  28. <services>
  29. <service behaviorConfiguration="NewBehavior0" name="Winsoft.GOV.WCF.PowerMettersService">
  30. <clear/>
  31. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  32. <endpoint binding="basicHttpBinding" contract="Winsoft.GOV.WCF.IPowerMettersService"/>
  33. <host>
  34. <baseAddresses>
  35. <add baseAddress="http://127.0.0.1:12351"/>
  36. </baseAddresses>
  37. </host>
  38. </service>
  39. </services>
  40. </system.serviceModel>
  41. </configuration>