title: Application cannot find Microsoft.SQLServer.SMO on SQL 2008 machine
body: <p>I have code that uses Microsoft.SqlServer.Management.Smo. (Built in Visual Studio 2005 SP1)
  It works fine on SQL 2000 &amp; SQL 2005 machine.
  But when it is run on SQL 2008 machine it throws an exception:</p>
  
  <p>System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
  File name: 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'</p>
  
  <p>===
  LOG: This bind starts in default load context.
  LOG: No application configuration file found.
  LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
  LOG: Post-policy reference: Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
  LOG: Attempting download of new URL file:///C:/Documents and Settings/Automation/Desktop/Debug/Microsoft.SqlServer.Smo.DLL.
  LOG: Attempting download of new URL file:///C:/Documents and Settings/Automation/Desktop/Debug/Microsoft.SqlServer.Smo/Microsoft.SqlServer.Smo.DLL.
  LOG: Attempting download of new URL file:///C:/Documents and Settings/Automation/Desktop/Debug/Microsoft.SqlServer.Smo.EXE.
  LOG: Attempting download of new URL file:///C:/Documents and Settings/Automation/Desktop/Debug/Microsoft.SqlServer.Smo/Microsoft.SqlServer.Smo.EXE.</p>
  
  <p>I have installed SQL 2005 Backwards compatibility pack (updated for SQL 2008) &amp; SQL management Objects(Updated for SQL 2008)</p>
  
  <p>Any suggestions.</p>
  
  <p>i went through <a href="https://stackoverflow.com/questions/537613/sql-server-smo-complains-of-missing-dll">SQL Server SMO complains of missing DLL</a> but not much of a help.</p>