Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mixed mode assembly
Message
De
21/01/2011 10:32:39
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Mixed mode assembly
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01496857
Message ID:
01496857
Vues:
103
I am trying to execute a script from my .NET code. This usually works for anything else. But, in regards to the following,
SET ANSI_WARNINGS OFF
DBCC ShrinkFile (LevelExtreme_Log,1)
I obtain this message:

"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."

My project is showing the following, as attached.

So, as you can see, my EXE is 4.0. My doubt is that the Microsoft. SQLServer. something are not up to date. I run SQL Server 2008. I am able to do this however:
Dim loBackup As Backup = New Backup
Dim loServer As Server = New Server

loBackup.Devices.AddDevice(cPath + "\" + cDatabaseName + ".bak", DeviceType.File)
loBackup.Database = cDatabaseName
loBackup.Action = Microsoft.SqlServer.Management.Smo.BackupActionType.Database
loBackup.Initialize = True
loBackup.PercentCompleteNotification = 1

AddHandler loBackup.PercentComplete, AddressOf ProgressEventHandler
loBackup.SqlBackup(loServer)
So, it seems to be related to the data provider, as that script is executed through it. Anyone would have any idea on what is causes this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform