Last post Aug 05, 2015 07:36 AM by Pengzhen Song - MSFT
Aug 04, 2015 03:14 PM|askmarkus1|LINK
MVC 5 controller linq statement has a couple joins.
-in controller can't compile this: db.CommandTimeOut = 60;
-in web.config connection string this isn't heeded: Connection Timeout=60;
Anyone seen and dealt with this?
Aug 05, 2015 07:36 AM|Pengzhen Song - MSFT|LINK
You can try to remove the value from the connection string and set it on the data context object itself. This will work if you remove the conflicting value from the connection string.
this.context.Database.CommandTimeout = 180;
For more information, please refer to the similar discussion: