IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ASP.NET Discussion :

ecrire dans word depuis une appli asp sur un serveur avec iis


Sujet :

ASP.NET

Mode arborescent

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    zzozo32456
    Invité(e)
    Par défaut ecrire dans word depuis une appli asp sur un serveur avec iis
    Bonjour tout le monde,
    j'ai une petite erreur qui me pose problème j'ai pas mal cherché mais pour le moment rien trouvé qui fonctionne, un peu d'aide serait la bienvenue.
    J'ai une appli web en asp.net et vb ou j'ecris quelques lignes dans un doc word au moment d'un click sur un bouton. l'appli marche en local sur mon poste mais sur le server j'ai un gros plantage.
    Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Accès refusé. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Accès refusé. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

    ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

    To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Accès refusé. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).]
    formFicheAccueil.LanceWord(String VarModele) +50
    formFicheAccueil.BGenererFiche_Click(Object sender, EventArgs e) +483
    System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    On dirait bien que c'est un probleme de droit qui empeche l'appli d'acceder à word. Il doit surement y'avoir une manip a faire du cote du serveur pour lui autoriser l'acces.
    Petite precision l'appli est securise par le mode d'authentification windows et on se connecte avec un compte utilisateur inscrit sur le serveur avec normalemnt des droits suffisant pour acceder au doc word.
    Any ideas???
    Dernière modification par Deepin ; 16/03/2011 à 10h07. Motif: Balises [QUOTE]...[/QUOTE] au lieu de [CODE]...[/CODE]

Discussions similaires

  1. Ecrire dans word depuis Excel: quel logique utiliser ?
    Par c.piette dans le forum Macros et VBA Excel
    Réponses: 4
    Dernier message: 29/04/2015, 16h33
  2. Déployer une appli java sur un serveur
    Par julienAnderson dans le forum Langage
    Réponses: 0
    Dernier message: 27/03/2012, 21h39
  3. Réponses: 0
    Dernier message: 08/07/2009, 16h22
  4. Réponses: 7
    Dernier message: 07/01/2009, 08h53
  5. Réponses: 4
    Dernier message: 08/02/2007, 00h32

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo