I'm working on an application that gets timeout exceptions often. I'm trying to test a fix we did to handle the errors, but to do that I need to replicate timeout exceptions.
Connection string:
<connectionStrings>
<add name="Entities"
connectionString="metadata=res://*/DataModel.csdl|res://*/DataModel.ssdl|res://*/DataModel.msl;provider=System.Data.SqlClient;provider connection string='Data Source=localhost;initial catalog=Name;Command Timeout=30;persist security info=True;user id=User;password=user_pwd;MultipleActiveResultSets=True;App=EntityFramework'"
providerName="System.Data.EntityClient" />
</connectionStrings>
My idea was to lower the timeout exception binding in the Entity Framework connection string, but when I add it it says the keyword is not supported.
I've also tried :
- Command Timeout
- CommandTimeout
- ConnectionTimeout
Does anybody have an idea? I'm starting to think my connection string is immutable lol.