The request has timed out after 00:00:00 milliseconds.

Hello,
I am having weird exception when I try to send a message to a topic and there's nothing on the internet I could "google with Bing" about it.
Here's the error message
The request has timed out after 00:00:00 milliseconds. The successful completion of the request cannot be determined. Additional queries should be made to determine whether or not the operation has succeeded.
There are two things weird about it:
The timeout period is 0 miliseconds
The number of miliseconds is given in format 00:00:00
Here's the whole stack
Timestamp: 5.5.2014. 11:15:58
Message: HandlingInstanceID: b9fcc3c8-c167-47ab-8473-ae45bfb62311
An exception of type 'System.TimeoutException' occurred and was caught.
05/05/2014 11:15:58
Type : System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : The request has timed out after 00:00:00 milliseconds. The successful completion of the request cannot be determined. Additional queries should be made to determine whether or not the operation has succeeded.
Source : Microsoft.ServiceBus
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : TAsyncResult End[TAsyncResult](System.IAsyncResult)
HResult : -2146233083
Stack Trace :
Server stack trace:
Exception rethrown at [0]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.TokenProviderHelper.EndGetAccessTokenCore(IAsyncResult result, String& expiresIn)
at Microsoft.ServiceBus.TokenProviderHelper.EndGetAccessTokenByAssertion(IAsyncResult result)
at Microsoft.ServiceBus.SharedSecretTokenProvider.OnEndGetToken(IAsyncResult result, DateTime& cacheUntil)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult.OnEndTokenProviderCallback(IAsyncResult result, DateTime& cacheUntil)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResultBase`1.OnCompletion(IAsyncResult result)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResultBase`1.<GetAsyncSteps>b__f(T thisPtr, IAsyncResult r)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
Exception rethrown at [1]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(TokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationToken(String appliesTo, String action)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessageInternal(String action, Object body, Boolean includeToken, String parentLinkId, RetryPolicy policy, TrackingContext trackingContext, RequestInfo requestInfo)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessage(String action, Object body, String parentLinkId, RetryPolicy policy, TrackingContext trackingContext, RequestInfo requestInfo)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.SendCommandAsyncResult.CreateWcfMessage()
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<GetAsyncSteps>d__40.MoveNext()
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.Start()
Exception rethrown at [2]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.<.ctor>b__1(IAsyncResult result, Boolean forceCleanUp)
at Microsoft.ServiceBus.Messaging.BatchManager`1.PerformFlushAsyncResult.OnSingleOperationCompleted(IAsyncResult result)
Exception rethrown at [3]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Messaging.BatchManager`1.BatchedObjectsAsyncResult.End(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.BatchManager`1.EndBatchedOperation(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.BatchManagerAsyncResult`1.OnBatchedCallback(IAsyncResult result)
at Microsoft.ServiceBus.Common.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)
Exception rethrown at [4]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.MessageSender.RetrySenderAsyncResult.<GetAsyncSteps>b__f(RetrySenderAsyncResult thisPtr, IAsyncResult r)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
Exception rethrown at [5]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Messaging.TopicClient.EndSend(IAsyncResult result)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Niva.Framework.Azure.Bus.AzureServiceBus.<EnqueueAsync>d__0.MoveNext() in c:\nivatech\papiri\source\framework\Azure\Bus\AzureServiceBus.cs:line 98
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Niva.Framework.Analytics.BusinessActivityLogRepository.<EnqueueAddAsync>d__29.MoveNext() in c:\nivatech\papiri\source\framework\Core\Analytics\BusinessActivityLogRepository.cs:line 51
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Niva.Papiri.Web.Controllers.BaseController.<RegisterActivityAsync>d__4.MoveNext() in c:\nivatech\papiri\source\web\site\Controllers\BaseController.cs:line 102
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Niva.Papiri.Web.Controllers.HomeController.<Index>d__0.MoveNext() in c:\nivatech\papiri\source\web\site\Controllers\HomeController.cs:line 35
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass48.<InvokeActionMethodFilterAsynchronouslyRecursive>b__41()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
Additional Info:
TimeStamp : 5.5.2014. 11:15:58
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
AppDomainName : /LM/W3SVC/2/ROOT-1-130437489467023302

We had the same issue and solved it.
We changed the authorization of the servicebus to SAS and all is working fine now.
1. Check Azure Portal  select your ServiceBus and go to register configuration
2. You need the Name and Key of existing Rule (here RootManageSharedAccessKey) or insert a new Rule. We created a new rule with no manage access.
3.1 In Code:
Replace the SharedSecretCredentials with SAS Tokenprovider and add it to the endpoint behaviors like before
TransportClientEndpointBehavior sas = new TransportClientEndpointBehavior();
sas.TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider("NAMEofRULE","KEYofRULE");
3.2 App.Config:
Simply change the tokenprovider line from
<behaviors>
      <endpointBehaviors>
        <behavior name="sharedSecretClientCredentials">
          <transportClientEndpointBehavior>
            <tokenProvider><sharedSecret issuerName="ACSNAME" issuerSecret="ACSKEY"/></tokenProvider>...
to
<sharedAccessSignature keyName="NAMEofRule" key="KEYofRULE"/>
Hope it helps!

Similar Messages

  • I logged out of my itunes and now it won't let me log back in. it says the request has timed out.. even though my internet is connected

    The itunes store will not let me log in, it says that the request has timed out even though my internet is connected and my username and password are correct

    I am having the same problem. It keeps saying that I have no internet connection, but I DO!

  • Reading azure table - The request has timed out

    Hi,
    I am developing a Windows store application with offline synchronization using Azure Mobile services. Have a table called
    IMobileserviceSyncTable<PRODUCT> ProductTbl= App.MobileServiceClient.GetSyncTable<PRODUCT>();
    When I am calling ProductTbl.PullAsync("ProductSync_Table", productTbl.Where(x => x.SKU == pItem.SKU);
    The PullAsync() method is resulting an exception as Request Timed out with Service Code 503: Service Unavailable.
    PRODUCT table has 7million records in azure but for this query results only one record.
    Under Mobile Service logs have the following exception:
    Error
    Exception=System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
    --- End of inner exception stack trace ---
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
    at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
    at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
    at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
    at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.<Reader>b__c(DbCommand t, DbCommandInterceptionContext`1 c)
    at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
    at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
    at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteDbDataReader(CommandBehavior behavior)
    at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
    at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
    --- End of inner exception stack trace ---
    at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
    at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
    at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__6()
    at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
    at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
    at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
    at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
    at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
    at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    at System.Web.Http.OData.Query.TruncatedCollection`1..ctor(IQueryable`1 source, Int32 pageSize)
    at System.Web.Http.OData.Query.ODataQueryOptions.LimitResults[T](IQueryable`1 queryable, Int32 limit, Boolean& resultsLimited)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Web.Http.OData.Query.ODataQueryOptions.LimitResults(IQueryable queryable, Int32 limit, Boolean& resultsLimited)
    at System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)
    at System.Web.Http.OData.EnableQueryAttribute.ApplyQuery(IQueryable queryable, ODataQueryOptions queryOptions)
    at System.Web.Http.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)
    at System.Web.Http.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
    at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext(), Id=39b9d12d-ce59-4f0f-af96-68d07ebd6eb4, Category='App.Filters'
    Can anyone please tell me how to get out of this issue.

    If this is timing out on you:
        var items=ProductTbl.Where(x => x.SKU == pItem.SKU).ToCollectionAsync();
    Then you most likely need to add an index on your SKU column, or use another filter that can have it avoid needing to look at all 7 million records.
    Have you timed how long the raw query takes to do directly on your SQL db? 
    Most likely you may need to setup some indices to use.  For offline sync, it will want to sort & filter by "__updatedAt" in addition to your filters.  So that
    is something to take in mind when optimizing your SQL performance.  

  • Guys i m nt able to download ios5 it coming tht tht the request has timed out ?

    guys i m nt able to download ios 5 i dont knw. on the other hand my iphone 4 is frm uk it wsa vodafone locked wen i came to mumbai i hd it factory unlockd nd nw i m scared tht as soon i upgrade it nto ios 5        it will get locked again wht shud i do?

    This is normal, a quick search of the forums would have revealed an answer without the need to post.
    Temporarily disable any anti-virus or firewall software on the computer.
    Then run the update.

  • Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778.Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding.

    Hi, 
    I created a simple plugin and since i wanted to use Early Binding i added Xrm.cs file to my solution.After i tried registering the plugin (using the Plugin Registration Tool) the plugin does not gets registered and i get the below mentioned Exception.
    Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:01:59.9139778. 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.
    Server stack trace: 
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.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 Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity)
       at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity)
       at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
       at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e)
    Inner Exception: System.TimeoutException: The HTTP request to 'https://demoorg172.api.crm.dynamics.com/XRMServices/2011/Organization.svc' has exceeded the allotted timeout of 00:01:59.9430000. The time allotted to this operation may have been a portion of a
    longer timeout.
       at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
    Inner Exception: System.Net.WebException: The operation has timed out
       at System.Net.HttpWebRequest.GetResponse()
       at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
    And to my Surprise after i remove the Xrm.cs file from my solution the Plugin got registered!
    Not understanding what exactly is the issue.
    Any Suggestions are highly appreciated.
    Thanks,
    Shradha
      

    Hello Shardha,
                            I really appreciate that you have faced this issue.This is really very strange issue and basically it occurs because of big size of your early bound class and slow internet
    connection.
                            I would strictly recommend you to reduce the file size of your early bound class and then register.By default early bound class is created for all the entities which are
    present in CRM(System entities as well custom entities).Such kind of early bound classes takes lots of time to register on server and hence timeout exception comes.
                            There is some standard define to reduce the size of early bound class.Please follow the link to get rid from big size of early bound class.
    Create a new C# class library project in Visual Studio called SvcUtilFilter.
    In the project, add references to the following:
    CrmSvcUtil.exe(from sdk)   This exe has the interface we will implement.
    Microsoft.Xrm.Sdk.dll  (found in the CRM SDK).
    System.Runtime.Serialization.
      Add the following class to the project:
    using System;
    using System.Collections.Generic;
    using System.Xml.Linq;
    using Microsoft.Crm.Services.Utility;
    using Microsoft.Xrm.Sdk.Metadata;
    namespace SvcUtilFilter
        /// <summary>
        /// CodeWriterFilter for CrmSvcUtil that reads list of entities from an xml file to
        /// determine whether or not the entity class should be generated.
        /// </summary>
        public class CodeWriterFilter : ICodeWriterFilterService
            //list of entity names to generate classes for.
            private HashSet<string> _validEntities = new HashSet<string>();
            //reference to the default service.
            private ICodeWriterFilterService _defaultService = null;
            /// <summary>
            /// constructor
            /// </summary>
            /// <param name="defaultService">default
    implementation</param>
            public CodeWriterFilter( ICodeWriterFilterService defaultService )
                this._defaultService = defaultService;
                LoadFilterData();
            /// <summary>
            /// loads the entity filter data from the filter.xml file
            /// </summary>
            private void LoadFilterData()
                XElement xml = XElement.Load("filter.xml");
                XElement entitiesElement = xml.Element("entities");
                foreach (XElement entityElement in entitiesElement.Elements("entity"))
                    _validEntities.Add(entityElement.Value.ToLowerInvariant());
            /// <summary>
            /// /Use filter entity list to determine if the entity class should be generated.
            /// </summary>
            public bool GenerateEntity(EntityMetadata entityMetadata, IServiceProvider services)
                return (_validEntities.Contains(entityMetadata.LogicalName.ToLowerInvariant()));
            //All other methods just use default implementation:
            public bool GenerateAttribute(AttributeMetadata attributeMetadata, IServiceProvider services)
                return _defaultService.GenerateAttribute(attributeMetadata, services);
            public bool GenerateOption(OptionMetadata optionMetadata, IServiceProvider services)
                return _defaultService.GenerateOption(optionMetadata, services);
            public bool GenerateOptionSet(OptionSetMetadataBase optionSetMetadata, IServiceProvider services)
                return _defaultService.GenerateOptionSet(optionSetMetadata, services);
            public bool GenerateRelationship(RelationshipMetadataBase relationshipMetadata, EntityMetadata otherEntityMetadata, IServiceProviderservices)
                return _defaultService.GenerateRelationship(relationshipMetadata, otherEntityMetadata, services);
            public bool GenerateServiceContext(IServiceProvider services)
                return _defaultService.GenerateServiceContext(services);
    This class implements the ICodeWriterFilterService interface.  This interface is used by the class generation
    utility to determine which entities, attrributes, etc. should actually be generated.  The interface is very simple and just has seven methods that are passed metadata info and return a boolean indicating whether or not the metadata should be included
    in the generated code file.   
    For now I just want to be able to determine which entities are generated, so in the constructor I read from an XML
    file (filter.xml) that holds the list of entities to generate and put the list in a Hashset.  The format of the xml is this:
    <filter>
      <entities>
        <entity>systemuser</entity>
        <entity>team</entity>
        <entity>role</entity>
        <entity>businessunit</entity>
      </entities>
    </filter>
    Take a look at the methods in the class. In the GenerateEntity method, we can simply check the EntityMetadata parameter
    against our list of valid entities and return true if it's an entity that we want to generate.
    For all of the other methods we want to just do whatever the default implementation of the utility is.  Notice
    how the constructor of the class accepts a defaultService parameter.  We can just save a reference to this default service and use it whenever we want to stick with the default behavior.  All of the other methods in the class just call the default
    service.
    To use our extension when running the utility, we just have to make sure the compiled DLL and the filter.xml file
    are in the same folder as CrmSvcUtil.exe, and set the /codewriterfilter command-line argument when running the utility (as described in the SDK):
    crmsvcutil.exe /url:http://<server>/<org>/XrmServices/2011/Organization.svc /out:sdk.cs  /namespace:<namespace> /codewriterfilter:SvcUtilFilter.CodeWriterFilter,SvcUtilFilter
    /username:[email protected] /password:xxxx
    That's it! You now have a generated sdk.cs file that is only a few hundred kilobytes instead of 5MB. 
    One final note:  There is actually a lot more you can do with extensions to the code generation utility. 
    For example: if you return true in the GenerateOptionSet method, it will actually generated Enums for each CRM picklist (which it doesn't normally do by default).
    Also, the source code for this SvcUtilFilter example can be found here. 
    Use at your own risk, no warranties, etc. etc. 
    Please mark as a answer if this post is useful to you.

  • ServiceRequestException : The request failed. The operation has timed out

    I wrote simple client using EWS Managed API. And let it run for one night. It was working fine. But when I checked it back in the morning, I found my application stopped. I checked logs I got following exception:
    2014-01-08 01:49:05.3649 | Error | Exception while fetching mails : The request failed. The operation has timed out | MyNamespace.MyClass.myMethod
    Immediate Stack Trace
    ===================================================================================
    Microsoft.Exchange.WebServices.Data.ServiceRequestException : The request failed. The operation has timed out
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
    at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()
    at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
    at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalLoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet, ServiceErrorHandling errorHandling)
    at Microsoft.Exchange.WebServices.Data.ExchangeService.LoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet)
    at MyNamespace.MyClass.myMethod() in c:\MyProject\MyClass.cs:line 190
    Inner Exception 1 : Stack Trace
    The operation has timed out
    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    Since the Exception message did not contain error code that Exchange server usually returns like (401) Unauthorized or (403) Forbidden, I am unable to pinpoint any reason for this to occur, since the functionality worked perfectly several times before
    this exception occurred as I can check in my logs. Also my diagnostic class which runs on the occurrences of any exception immediately tried to ping exchange server and re-initialize ExchangeService object. When I checked diagnostics logs after this exception
    time for the result of diagnostics, then it was able to ping the exchange server and the ExchageServer object also initialized successfully. So I am out of any reason now. 
    The exception occurred on the last line of the following code:
    ItemView itemView = new ItemView(100, 0);
    FindItemsResults<Item> itemResults = null;
    PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
    itemView.PropertySet = psPropSet;
    PropertySet itItemPropSet = new PropertySet(BasePropertySet.IdOnly)
    ItemSchema.Attachments,
    ItemSchema.Subject,
    ItemSchema.Importance,
    ItemSchema.DateTimeReceived,
    ItemSchema.DateTimeSent,
    ItemSchema.ItemClass,
    ItemSchema.Size,
    ItemSchema.Sensitivity,
    EmailMessageSchema.From,
    EmailMessageSchema.CcRecipients,
    EmailMessageSchema.ToRecipients,
    ItemSchema.MimeContent
    itemResults = service.FindItems(WellKnownFolderName.Inbox, itemView);
    if (itemResults.Items.Count != 0)
    service.LoadPropertiesForItems(itemResults.Items, itItemPropSet);
    Any guesses why this could have happened? Or just some random network congestion? Am I forgetting to log some more information. Should I also log Exception.Data or something else?

    The timeout is occurring on the client so it not a particular error that's being returned by the server.
    The default timeout with the EWS Managed API is 90 seconds and is set on the ExchangeService Object. You can set this to a higher value eg to set it to 5 minutes
    server.timeout = 300000;
    Why it fails ? if its overnight then Backups can be the cause eg if they are snapshotting the server or some other backup mechanism could mean the server is very busy for a time. Or any other number of specific environmental factors. This is really
    a job for your Network admin to determine with server and network monitoring. I would suggest you check the EWS.Log on the Exchange server to see what happened at that time.
    What you should do at a code level is handle the exception, I would suggest wait for 60 seconds after the exception (this will cater for most throttling issues) and then try the same request again. If it fails again after a pause then
    you generally have a larger problem.
    Cheers
    Glen

  • The operation has timed out default value too low - c# windows application

    Hello,
    I get the message that the operation has timed out when certain operations take too long, which would be any on our development/test server.
    I either need to make an asychronous call which I will investigate or to find the code that sets this value to ten minutes.
    Anybody know how to reset the value to ten minutes?
    Thanks,
    Stephanie

    The timeout is occurring on the client so it not a particular error that's being returned by the server.
    The default timeout with the EWS Managed API is 90 seconds and is set on the ExchangeService Object. You can set this to a higher value eg to set it to 5 minutes
    server.timeout = 300000;
    Why it fails ? if its overnight then Backups can be the cause eg if they are snapshotting the server or some other backup mechanism could mean the server is very busy for a time. Or any other number of specific environmental factors. This is really
    a job for your Network admin to determine with server and network monitoring. I would suggest you check the EWS.Log on the Exchange server to see what happened at that time.
    What you should do at a code level is handle the exception, I would suggest wait for 60 seconds after the exception (this will cater for most throttling issues) and then try the same request again. If it fails again after a pause then
    you generally have a larger problem.
    Cheers
    Glen

  • When I try to download iOS 6 to my iPhone 4 it says " Verification Failed. Request has timed out". What do I do?

    How to download iOS 6 on iPhone 4??. Keeps saying "verification fAiled. Request has timed out"

    Try try again. Thre server are heavily loaded. The connection dropped becasue the computer thinks it waited to long. Disabling your security software on the computer can help resolve this too.

  • I have an itunes acct. on my PC, but itunes doesn't allow me on using that acct. info.  When I try to set up a new id on my ipad it says the session has timed out.

    I have an itunes account on my PC and have downloaded Kindle and iBook with no problem, but when I try and use that acct id on my iPad the system says I cannot access the store.  However, when I try to create a new id the system comes up and tells me that I am from Canada, which is always nice to know in case I ever forget, and when I acknowledge that screen, it immediately tells me the session has timed out.  What am I doing wrong?  Willingly admit I am not at all knowledgable in the Apple world.  Thanks for any help you can give..

    Carmell-
    When I've had a similar problem, it was because I was accessing the iTunes store from a device I hadn't used before, such as when I upgraded from an iPad 1 to the iPad 2.  It was a little confusing to me until I figured it out.
    All I had to do was use the ID of my existing account and play along with the iTunes store.  As I recall, it asked for my password twice, and the security code from the back of my credit card.  After that, downloads proceeded as before.
    Fred

  • Question about EWS - The operation has timed out

    hi everyone,
    I'm developing a solution which uses public folder database in Exchange Server to store tasks:
    - We use 1 account to access to public folder database by using EWS.
    - Currently, this public folder database contains 60000 tasks and they are being accessed by 700 users, they always have the following exception: 
    04/23/2015 09:41:15:  - The request failed. The operation has timed out
    Message :The request failed. The operation has timed out
    Source :Microsoft.Exchange.WebServices
    Stack Trace :   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
       at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
       at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
       at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems[TItem](IEnumerable`1 parentFolderIds, SearchFilter searchFilter, String queryString, ViewBase view, Grouping groupBy, ServiceErrorHandling errorHandlingMode)
       at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId, SearchFilter searchFilter, ViewBase view, Grouping groupBy)
    Please help.
    Thanks a lot.
    Phuc

    Thanks Glen for your reply.
    Here is a code block which retrieve the number of task of some groups
    foreach (var bu in request.BusinessUnits)
    SearchFilter businessUnitFilter = new SearchFilter.IsEqualTo(BusinessUnitAliasProp, bu);//, ContainmentMode.FullString, ComparisonMode.IgnoreCase);
    SearchFilter[] filters = new SearchFilter[] { actualOwnerFilter, statusFilter, businessUnitFilter };
    var filterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.And, filters);
    GroupedFindItemsResults<Item> taskResults = this.exchangeService.FindItems(_publicFolderId, filterCollection, itemView, groupByApplication);
    if (taskResults != null && taskResults.ItemGroups != null)
    foreach (var groupItem in taskResults.ItemGroups)
    if (!dict.ContainsKey(groupItem.GroupIndex))
    dict.Add(groupItem.GroupIndex, new Dictionary<string, int>());
    if (!dict[groupItem.GroupIndex].ContainsKey(bu))
    dict[groupItem.GroupIndex].Add(bu, groupItem.Items.Count);
    Please let me know if it's too complex and might affect to the performance of Exchange Server

  • I have just downloaded firefox onto my laptop but it wont open. I keep getting a message that says: 'The connection has timed out' Can you help

    This is the message i get after a few seconds of trying to connect:
    The connection has timed out.
    The server at search.bearshare.com is taking too long to respond.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Is this when you install the EXE, or when you are running Firefox, or some other time?

  • Surfing the web I constantly get a dialog box popping up that says "The connection was rest" or " Server not found" or "The connection has timed out"

    Surfing the web I constantly get a dialog box popping up that says "The connection was rest" or " Server not found" or "The connection has timed out". The panel gives me three possible causes, none of which are correct and tells me to "Try again". Sometimes when I try again the site appears, sometimes it does after several tries and sometimes it never does. I called my IP, Cox and they told me it is a result of something Microsoft put out in their updates to IE (presumably to discourage people from using Firefox). Can you help me get rid of this problem?

    Surfing the web I constantly get a dialog box popping up that says "The connection was rest" or " Server not found" or "The connection has timed out". The panel gives me three possible causes, none of which are correct and tells me to "Try again". Sometimes when I try again the site appears, sometimes it does after several tries and sometimes it never does. I called my IP, Cox and they told me it is a result of something Microsoft put out in their updates to IE (presumably to discourage people from using Firefox). Can you help me get rid of this problem?

  • HI I download 29.0.1and now it gives me The connection has timed out

    hi i download the new firefox and now it dont whant to work
    The connection has timed out
    The server at fhr.cdn.mozilla.net is taking too long to respond.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
    i need help asap

    *1<BR>I found that after Firefox v29, a LOT of my settings and<BR>
    add-ons were changed / reset. Try this;
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Then check ALL of your settings. Browser and add-ons. Then restart.<BR><BR><BR>
    *2<BR>Some problems occurs when your Internet security program was set to trust the
    previous version of Firefox, but no longer recognizes your updated version as
    trusted. Now how to fix the problem: To allow Firefox to connect to the Internet
    again:<BR><BR>
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version)<BR><BR>
    * Remove Firefox from your program's list of trusted or recognized programs, then add it back. For detailed instructions, see Configure firewalls so that Firefox can access the Internet.

  • How can I prevent "the connection has timed out" message.

    Sorry, this is a duplicate. Can't determine how to delete. Mike.
    Frequently takes a full minute to get to first page. Happens on IE as well as FF, also on my email client. After an hour or so, Thunderbird can no longer reach my email,with an error. To recover I have to reboot.
    Occasionally "try again" button works on the "connection has timed out" message
    Some tools which access the web take a long time to “update”,
    is hard to recreate have not proven or disproven the firewall is a problem. Don't think WinXP firewall is on.
    Tried refresh of Adobe Flash Player per suggestion in Firefox Support forum, no help.

    Hello there, FloridaAce.
    The following Knowledge Base article offers up some practical first steps for troubleshooting Wi-Fi connectivity issues with an iOS device:
    iOS: Troubleshooting Wi-Fi networks and connections
    If going through the initial recommended steps doesn't yield a resolution to your issue, you may want to run through this section as well:
    Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How do i transfer music from my windows 7 computer to my iphone 4s when it says the device has timed out?

    when i connect my iphone 4s to my windows 7 pc, it says the device has timed out so cannot connect. what do i do? i need to transfer music from my pc to my phone but it wont connect. please help, thank you!

    Temporarily disable any security software on the computer, then attempt to sync content to the device.
    If that resolves the problem, contact whomever supports the security software (not Apple) and inquire how to prevent their software from intereferring with iTunes.

Maybe you are looking for