Just add the following in your connection string:
MultipleActiveResultSets=True;
More Related Contents:
- Run cmd locally from webpage [closed]
- C# compiler error: “not all code paths return a value”
- How do you add a timer to a C# console application
- Export DataTable to Excel with EPPlus
- Copy the entire contents of a directory in C#
- How to use the Paint event to draw shapes at mouse coordinates
- Adding items to a LIST of objects results in duplicate Objects when using a NEW in a Loop
- Generic Method Executed with a runtime type [duplicate]
- 5.7.57 SMTP – Client was not authenticated to send anonymous mail during MAIL FROM error
- What is the connection string for localdb for version 11
- determine if file is an image
- Nullable vs. int? – Is there any difference?
- Sum of digits in C#
- How to Compare Flags in C#?
- Uncompressing gzip response from WebClient
- How can I create a more user-friendly string.format syntax?
- Get error message if ModelState.IsValid fails?
- C# WinForms ErrorProvider Control
- Calculate a MD5 hash from a string
- How to ‘await’ raising an EventHandler event
- How to ignore ssl_client_socket_impl.cc(1061)] handshake failed in selenium c# ChromeDriver
- Console.WriteLine slow
- IIS Express Immediately shutting-down running site after stopping web application
- ‘Forms’ does not exist in the namespace system.windows
- Deserialize array of key value pairs using Json.NET
- How can I detect if this dictionary key exists in C#?
- What is the best way to run ServiceStack on Linux / Mono?
- How to find path to .cs file by its type in C#
- Datatable select with multiple conditions
- regex to split line (csv file)