public SqlConnection baglan()
{
SqlConnection baglanti = new SqlConnection(ConfigurationManager.ConnectionStrin gs["Library"].ConnectionString);
baglanti.Open();
return baglanti;
}
bağlantımı static bir metod altında topladım daha verimli olsun diye fakat aşağıdaki hatayı almaya başladım . Bilgisayarda da aynı hatayı aldım fakat düzeldi, ftpde sürekli bunu veriyor farklı bir uygulama yüklesemde bu hata ile karşılaşıyorum.
Static metodu çağırdığım yerlerde close ve dispose yaptım .2 gündür asp.net ile uğraşıyorum java'da garbace collector kullanılmayan nesneleri topluyordu. Hatanın nedeni static metod nesnesi ölümsüz olabilir mi ? (lifetime hakkında bir bilgiye sahip değilim.)
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
Hatanın nedeni static metod mu yoksa farklı bir şey mi düşünmekten ve yöntem denemedkten çıldırdım.

Yardımcı olacak arkadaşlara şimdiden çok teşekkür ederim.