Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

Another error on executing SQL Server 2008 Management Studio and just trying to connect to Database Engine. Though after pressing OK on the error mentioned, everything works but Management Node won’t work and you would keep on getting this error again and again.

 

Apart from this if you are trying to configure Microsoft BizTalk Server 2009 – BizTalk EDI/AS2 Runtime it would also fail with the same error, rest all the BizTalk components would function.

 

To resolve this, follow the steps below:

1. Run Command Prompt and find the location of the DLL using

    > dir Microsoft.SqlServer.Diagnostics.STrace.dll /s

2. Copy the location with the DLL name.

3. Run VS 2008 Command Prompt as Administrator.

4. Execute the following

    GACUTIL –i “{Location of Microsoft.SqlServer.Diagnostics.STrace.dll} found at step 1”

 

And both the situations would get resolved.