Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We are currently registering a stand-alone SQL Server database in our composer using
composition.RegisterUnique(typeof(IDatabase), new Database("registerDSN"));
However, we are getting connection errors:
ExecuteReader requires an open and available Connection. The connection's current state is connecting.
What is the correct way to register the connection for use with DI so that handles opening and closing connections correctly?
Before Executing any Sql Query make sure that your connection of Application with DataBase is Open
Refer this link :-
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted