Member 13187373 Ответов: 0

Сборка прошла локально, но потерпела неудачу на сервере jenkins с ошибкой:system.servicemodel.faultexception : не удалось загрузить файл или сборку и system.timeoutexception : истекло время ожидания канала запроса.


Всем Привет,
Я использую приложение Windows form.
У меня есть всего 688 модульных тестов, написанных в моем проекте.
Когда я запускаю эти модульные тесты в своей локальной среде разработки, то все они успешно проходят, но когда я запускаю эти модульные тесты на Сервер Дженкинса тогда 57 модульных тестов терпят неудачу из 688.

Я новичок в Дженкинсе, поэтому я не знаю, что с этим делать, потому что если эта проблема возникнет в моей локальной среде, то я обязательно попытаюсь ее исправить, но в Дженкинсе я не получаю никаких подсказок, что делать.

ниже приведена полная трассировка стека 2, которая генерируется при построении через Дженкинса:
1.)

MESSAGE:
System.ServiceModel.FaultException : Could not load file or assembly 'Store.Common, Version=21.1.4766.0, Culture=neutral, PublicKeyToken=bc4823754db87e14' or one of its dependencies. The system cannot find the file specified.
+++++++++++++++++++
STACK TRACE:

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Store.ExternalApi.Proxy.IDocumentHandlingService.Search(SearchRequest request)
at Store.ExternalApi.Proxy.IDocumentHandlingService.Search(SearchRequest request) in D:\Dev\Server\mainline\ExternalApi\ExternalApiProxy\DocumentHandlingServiceClient.cs:line 416
at Store.ExternalApi.Tests.WebService.DestroyTests.DestroySearchWebMethod() in D:\Dev\Server\mainline\ExternalApi\ExternalApiTests\WebService\DestroyTests.cs:line 26


2.)
MESSAGE:
System.TimeoutException : The request channel timed out while waiting for a reply after 00:00:59.9990195. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
  ----> System.TimeoutException : The HTTP request to 'http://localhost/ExternalApiWebService/DocumentHandlingService.svc' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.
  ----> System.Net.WebException : The operation has timed out
+++++++++++++++++++
STACK TRACE:

Server stack trace:
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Store.ExternalApi.Proxy.IDocumentHandlingService.StoreNewVersionedDocument(StoreNewVersionedDocumentRequest request)
at Store.ExternalApi.Proxy.DocumentHandlingServiceClient.Store.ExternalApi.Proxy.IDocumentHandlingService.StoreNewVersionedDocument(StoreNewVersionedDocumentRequest request) in D:\Dev\Server\mainline\ExternalApi\ExternalApiProxy\DocumentHandlingServiceClient.cs:line 80


Ниже приведен мой веб-конфиг:

<basicHttpsBinding>
            <binding name="DocumentHandlingHttpsBinding" openTimeout="00:10:00" sendTimeout="01:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
            </binding>
</basicHttpsBinding>
<basicHttpBinding>
            <binding name="DocumentHandlingHttpBinding" openTimeout="00:10:00" sendTimeout="01:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
            </binding>
            <binding name="TransferServiceHttpBinding" sendTimeout="00:25:00" maxBufferSize="2147483647" maxReceivedMessageSize="9223372036854775807" transferMode="Streamed">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security>
                  <message clientCredentialType="UserName" />
               </security>
            </binding>
            <binding name="TransferServiceWindowsHttpBinding" sendTimeout="01:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="9223372036854775807" transferMode="Streamed">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security>
                  <transport clientCredentialType="Windows" />
               </security>
            </binding>
</basicHttpBinding>
<netTcpBinding>
            <binding name="DocumentHandlingTcpBinding" openTimeout="00:10:00" sendTimeout="01:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
            </binding>
            <binding name="StoreTcpBinding" openTimeout="00:10:00" sendTimeout="01:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security mode="Message">
                  <transport clientCredentialType="None" protectionLevel="None" />
                  <message clientCredentialType="UserName" />
               </security>
            </binding>
            <binding name="StoreWindowsTcpBinding" openTimeout="00:10:00" sendTimeout="01:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security mode="Transport">
                  <transport clientCredentialType="Windows" />
               </security>
            </binding>
            <binding name="TransferServiceTcpBinding" sendTimeout="01:10:00" transferMode="Streamed" maxBufferSize="2147483647" maxReceivedMessageSize="9223372036854775807">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security mode="None">
                  <transport clientCredentialType="None" protectionLevel="None" />
                  <message clientCredentialType="UserName" />
               </security>
            </binding>
</netTcpBinding>
<wsHttpBinding>
            <binding name="StoreHttpBinding" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security>
                  <message clientCredentialType="UserName" />
               </security>
            </binding>
            <binding name="StoreWindowsHttpBinding" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="536870912" />
               <security>
                  <message clientCredentialType="Windows" />
               </security>
            </binding>
            <!--HTTPS-->
            <binding name="StoreHttpsBinding" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="104857600" />
               <security mode="TransportWithMessageCredential">
                  <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
                  <message clientCredentialType="UserName" establishSecurityContext="true" algorithmSuite="Default" />
               </security>
            </binding>
            <binding name="StoreWindowsHttpsBinding" sendTimeout="00:10:00" maxReceivedMessageSize="2147483647">
               <readerQuotas maxDepth="256" maxStringContentLength="104857600" maxArrayLength="104857600" />
               <security mode="TransportWithMessageCredential">
                  <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
                  <message clientCredentialType="Windows" algorithmSuite="Default" />
               </security>
            </binding>
</wsHttpBinding>


Что я уже пробовал:

Я попробовал увеличить Значение sendtimeout но не повезло,я искал соответствующие ответы в Google, но в моем случае это не помогло.

Любая помощь будет высоко оценена.

0 Ответов