The wait operation timed out

I had the same problem. Some SQL upgrade command was very long running and caused the error because the default timeout is set to 30 seconds. I've found the following article on SO to overcome this issue: EF Code First - Timeout expired. The timeout period elapsed prior to completion

For me, it worked setting the CommandTimeout to 180 seconds in the Configuration.cs file.

Good luck


I think this might be useful for someone came looking for an answer for the same mistake in future.

Thanks for the help from everyone but the issue I faced was because of me forgetting to add user to my application pool ! silly mistake from my side !