web.config 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <connectionStrings>
  8. <add name="constr" connectionString="Data Source=192.168.0.94;Initial Catalog=Naire;User ID=sa;Password=sa" providerName="System.Data.SqlClient" />
  9. </connectionStrings>
  10. <system.web>
  11. <customErrors mode="Off" defaultRedirect="404.html"/>
  12. <compilation debug="true" targetFramework="4.0"/>
  13. </system.web>
  14. <system.serviceModel>
  15. <bindings>
  16. <basicHttpBinding>
  17. <binding name="BasicHttpBinding_IPowerMettersService" closeTimeout="00:01:00"
  18. openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
  19. allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
  20. maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
  21. messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
  22. useDefaultWebProxy="true">
  23. <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
  24. maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
  25. <security mode="None">
  26. <transport clientCredentialType="None" proxyCredentialType="None"
  27. realm="" />
  28. <message clientCredentialType="UserName" algorithmSuite="Default" />
  29. </security>
  30. </binding>
  31. </basicHttpBinding>
  32. </bindings>
  33. <client>
  34. <endpoint address="http://192.168.0.75:12351/" binding="basicHttpBinding"
  35. bindingConfiguration="BasicHttpBinding_IPowerMettersService"
  36. contract="ServiceReference.IPowerMettersService" name="BasicHttpBinding_IPowerMettersService" />
  37. </client>
  38. </system.serviceModel>
  39. </configuration>