[英]asp.net application is working very slow after wcf service application
我正在开发一个asp.net应用程序,并且正在使用一个WCF服务应用程序从此应用程序中的数据库获取数据。 客户端应用程序的webconfig配置是这样的。
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IServicePaymentControllerUIClient"
closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:63796/ServicePaymentControllerUIClient.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IServicePaymentControllerUIClient"
contract="ServiceReferencePaymentControllerUI.IServicePaymentControllerUIClient"
name="WSHttpBinding_IServicePaymentControllerUIClient">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
在使用WCF Service之前,我的asp.net应用程序运行速度非常快,但是现在其加载速度非常慢。 所以我想知道其背后的原因以及如何摆脱这个问题? 如何提高我的应用程序的性能?
我找不到您的配置文件有问题。 正如您提到的请求超时一样,您应该跟踪什么错误。
我建议您启用WCF跟踪以获取详细信息,将跟踪源配置为发出跟踪并设置跟踪级别,设置活动跟踪和传播以支持端到端跟踪相关性,并将跟踪侦听器设置为访问跟踪。
http://msdn.microsoft.com/en-us/library/ms733025.aspx
http://msdn.microsoft.com/en-us/library/ms751526.aspx
谢谢Vishal Patel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.