dc

dc

  • NA
  • 663
  • 0

C# object remain open

Feb 11 2013 11:09 AM
In a C# 2008 windows application, I am getting the following error messages:

Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\TrustedPeople
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\TrustedPeople
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\My
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\My
Process 9528 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\Disallowed
Process 8880 (\Device\HarddiskVolume2\Program Files (x86)\red\sampleclient.exe) has opened key \REGISTRY\USER\S-1-5-21-11-222-333\Software\Microsoft\SystemCertificates\Disallowed

There is no code in the appliation to use registry, thus the only thing I think can be wrong is something about the connection string to the database.

Here is the connection string in the database to a sql server 2008 r2 database:

<connectionStrings>
<add name="eConnectionString" connectionString="Data Source=DEV;Initial Catalog=DEVDB;User Id=TESTUSER;Password=xxxxxx;"providerName="System.Data.SqlClient" />
</connectionStrings>

The account that is being used is setup for an applicaiton by using a sql server login. The account also has some kind of rights to windows.

I am trying to determine what could be causing the registry keys to be open when I have no code form them.

I am thinking the problem can be one of the following:

1.objects are created? would you dispose of all the objects?
2. The connections to the database are linq to sql statements. Is there a way to close all the objects?
3. When I create a linq to sql database object, should I be disposing of each object after it is no longer needed?



Thus can you tell what how you think I can change the connection string to the database and/or tell me what you think can be wrong?