System.ComponentModel.Win32Exception: The wait operation timed out?
Microsoft Net Framework

modified the DBcontext

public class WeedingContext : DbContext
    {
        public WeedingContext()
            : base("WeddingDb")
        {
        }
.
.
.
.



by add in new code for the DBContect  to extent the SQLServer timeout

 public class WeedingContext : DbContext
    {
        public WeedingContext()
            : base("WeddingDb")
        {
            // Get the ObjectContext related to this DbContext
            var objectContext = (this as IObjectContextAdapter).ObjectContext;

            // Sets the command timeout for all the commands
            objectContext.CommandTimeout = 180;
        }
Regards:Zaif Ullah

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM