Bonjour,
Nous convertissons une application ASP en ASP.Net. Dans notre application nous utilisons une DLL publié en tant que DLL COM+.
En ASP nous la chargions avec :
<object runat="server" scope="session" id="API_COMPlus" progid="API_COMPlus.API"></object>
Et nous l'utilisions simplement dans n'importe quel page ASP avec "API_COMPlus.ma_fonction"
En ASP.Net nous pouvons (à priori) tj la charger avec la même ligne de chargement mais lorsque j'appel une fonction depuis une page aspx j'ai l'erreur suivante :
CS1061: 'object' does not contain a definition for 'ma_fonction' and no extension method 'ma_fonction' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
Y a t'il un fonctionnement différent ? Une syntaxe particulière pour appeler la fonction ?
Partager