Win32Exception: The wait operation timed out. in asp.net core Ask Question
By   Junaid A     14-Jul-2024    1

How to fix: An unhandled exception occurred while processing the request.

Win32Exception: The wait operation timed out.

Unknown location

SqlException: Execution Timeout Expired.

Solution:

in file  ... \Program.cs add below lines

builder.Services.AddDbContext(options =>
{
// options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"));

options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"),op=>op.CommandTimeout(999));
});

Solutions


10377
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