We upgraded our application to .NET 4.0 some time ago, and now you need to add the ability to backup SQL Server 2008 databases from the application. However, it seems that SMO is not available for .NET 4. Is there a workaround or a better way to back up the database (note that our backups must be initiated by the user on the website, so we cannot plan them) .
Use BACKUP DATABASE ?
One,
SMO .NET 4.0, .NET 2.0.
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information., SQL Server SDK (SQL Server 2008 R2) , ββ SQL Server, . 2005.
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.