j'ai reglé le probleme en faisant ca:
a. I first opened DCOMCNFG from the command prompt, opened Component Services, expanded Computers/My Computer/DCOM Config. Then I Selected Microsoft Excel Application, and in the resulting dialog selected Security tab. Under Security Tab I changed Launch and Activation Permissions to customize, Access Permissions to customize and configuration Permissions to customize. And in the all the three I selected the ASPNET account.
b. I then Select the NEW Folder in Windows Explorer, opened the properties and under WebSharing tab I selected Share This Folder.
Maintenant j'ai l'erreur suivante:
catch:System.Runtime.InteropServices.COMException (0x800A03EC): Mémoire insuffisante. Microsoft Office Excel ne peut plus ouvrir ou enregistrer de documents.
. Pour augmenter la mémoire disponible, fermez les classeurs ou les programmes dont vous n'avez plus besoin.
. Pour libérer de l'espace du disque sur lequel vous enregistrez, supprimez-en les fichiers dont vous n'avez plus besoin.
at Microsoft.Office.Interop.Excel.Workbooks.Add(Object Template)
at XLSOFF2007..ctor(String[][] tab, String partenaire, String sessionLogin) in c:\Inetpub\Extranet Stats\App_Code\XLSOFF2007.cs:line 30