Dear Open Hub Users,
We’re excited to announce that we will be moving the Open Hub Forum to
https://community.blackduck.com/s/black-duck-open-hub.
Beginning immediately, users can head over,
register,
get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.
On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at
[email protected]
Hi all,
I am using Npgsql driver 2.0. In my application when I execute NpgsqlCommand.ExecuteNonQuery() and time out occurs. I get a timeout exception which is fine. After this, what ever query my application sends to server, another exception is always raised with following message;
Npgsql.NpgsqlException:
canceling statement due to user request
Is this normal behavior, like the second exception is unavoidable and will always occur when ever a timeout exception has been raised? Or is it a bug?
Regards,
Shinwari
It occurs because of connection timeout.
By setting the cmd.CommandTimeout = 0;
you can avoid it.