[英]asp.net application is working very slow after wcf service application
I am developing one asp.net application and I am using one WCF service application to get data from database in this application . 我正在开发一个asp.net应用程序,并且正在使用一个WCF服务应用程序从此应用程序中的数据库获取数据。 webconfig configuration of Client application is like this.
客户端应用程序的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>
before using WCF Service my asp.net application was pretty fast, but now its loading very slow. 在使用WCF Service之前,我的asp.net应用程序运行速度非常快,但是现在其加载速度非常慢。 So I want to know the reason behind it and how can I get rid of this issue ??
所以我想知道其背后的原因以及如何摆脱这个问题? How to increase performance of my application ??
如何提高我的应用程序的性能?
I cannot find wrong with your config files. 我找不到您的配置文件有问题。 As you mentioned that your request time out, you should to trace what error is.
正如您提到的请求超时一样,您应该跟踪什么错误。
I suggest you enable WCF tracing to get detail information, configure trace sources to emit traces and set trace levels, set activity tracing and propagation to support end-to-end trace correlation, and set trace listeners to access traces. 我建议您启用WCF跟踪以获取详细信息,将跟踪源配置为发出跟踪并设置跟踪级别,设置活动跟踪和传播以支持端到端跟踪相关性,并将跟踪侦听器设置为访问跟踪。
http://msdn.microsoft.com/en-us/library/ms733025.aspx http://msdn.microsoft.com/en-us/library/ms733025.aspx
http://msdn.microsoft.com/en-us/library/ms751526.aspx http://msdn.microsoft.com/en-us/library/ms751526.aspx
Thank you, Vishal Patel 谢谢Vishal Patel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.