Cannot open Sql Connection in Serviced component
I am trying to open a SQL Server connection in the Serviced component.(.Net)
SqlConnection objConn = new SqlConnection (strConnectionString);
I am using a remote database.
It generates an error when the open() method is encountered.
The exception thrown is HRESULT EXCEPTION.
I went through different sites and found that problem but no concrete solution has been provided.
I am stuck at this point.
My component is of type Library and not Server Application.
Is there any solution to get rid of this?