locked
Build passed locally but failed on jenkins server with error:system.servicemodel.faultexception : could not load file or assembly and system.timeoutexception : the request channel timed out. RRS feed

  • Question

  • Hi All,
    I am using Windows form application.
    I have total 688 unit tests written in my project.
    When I am running these unit tests on my local development environment then these all are passing successfully but when I am running these unit tests on Jenkins Server then 57 unit tests are failing out of 688.

    I'm new in Jenkins so I'm confused what to do with this because if these issue would come on my local environment then I will definitely try to fix it but in Jenkins, I'm not getting any clue, what to do.

    below is the 2 full stack trace which is generating while building through Jenkins:
    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


    Below is my web config file:

    <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>

     In my development environment, I am working on three solutions. StoreClient , StoreServer and StoreCommon. So, here if any changes made in common it is impacting all three solutions which I am using. here, Store.Common is a dll which is being used in Server solutions. Please let me know, if any more information.

    I have searched the relevant answers from google but it didn't helped in my case.

    Can anyone suggest me, please ?


    Sunday, June 14, 2020 1:47 PM

All replies

  • Hi Ankit Raman,
    This forum is discussing and asking questions about the Windows Forms such as Winforms controls, libraries, samples, publication and installation.
    I viewed your description, It is mostly related to Jenkins which seems to be a third-party.
    Thank you for your understanding.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 15, 2020 2:06 AM
  • Ok. thank you.
    Tuesday, June 16, 2020 9:36 PM