Function evaluation disabled because a previous function evaluation timed out.

Error: Function evaluation disabled because a previous function evaluation timed out. You must continue execution to re enable function evaluation.

Solution: This is happen while we are time-extended queries in EF.

We can manage by extending connect timeout to 130(3 minutes) in connection string.

<connectionStrings>
    <add name="MYDATABASEEntities"
         connectionString="
               metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;
               provider=System.Data.SqlClient;
               provider connection string=&quot;
               data source=.;initial catalog=MYDATABASE;
               integrated security=True;
               asynchronous processing=True;
               connect timeout=180;
               MultipleActiveResultSets=True;App=EntityFramework&quot;"
         providerName="System.Data.EntityClient" />
  </connectionStrings>

Fig:1.0

ct

 

Author:

Since March 2011, have 4 years of extensive hands on experience of software development.

Leave a Reply

Your email address will not be published. Required fields are marked *