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 :

Access to the path D:\w\csva-vsca\5802_1924\ is denied


Sujet :

ASP.NET

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    60
    Détails du profil
    Informations personnelles :
    Localisation : Canada

    Informations forums :
    Inscription : Mars 2006
    Messages : 60
    Par défaut Access to the path D:\w\csva-vsca\5802_1924\ is denied
    Bonjour,

    Via mon application asp.net j'essaie de créer un répertoire sur le même serveur Web où est hébergé mon application. L'usager local ASP.NET Machine Account a les droits en écriture et modificaitons ainsi que ASPNET.

    Cela a toujours marché jusqu'à tout récemment. À présent, j'ai toujours l'erreur suivante:

    Access to the path 'D:\wwwfiles\csva-vsca\5802_1924\' is denied.
    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: Access to the path 'D:\wwwfiles\csva-vsca\5802_1924\' is denied.

    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) 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:


    Line 2070: LienPDFOriginal = PathOriginal & "AnnexeB_E.pdf"
    Line 2071: If Not IO.Directory.Exists(PathNew) Then
    Line 2072: IO.Directory.CreateDirectory(PathNew)
    Line 2073: End If
    Line 2074: LienPDFSortie = PathNew & String.Format("PVA#{0}_AnnexeB_E_Demande#{1}_no{2}.pdf", noPVA, noDemande, noFormulaire)


    Source File: D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\App_Code\PDF.vb Line: 2072

    Stack Trace:


    [UnauthorizedAccessException: Access to the path 'D:\wwwfiles\csva-vsca\5802_1924\' is denied.]
    System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7716639
    System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity) +7569557
    System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity) +150
    System.IO.Directory.CreateDirectory(String path) +6
    PDF.ANNEXEB_E(Int32 idForm, Int32 idDemande, Int32 idPVA, String PathOriginal, String PathNew) in D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\App_Code\PDF.vb:2072
    Bases_Services_Cea_Soumission_Base.sendEmail() in D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\Bases\Services\Soumission_Base.ascx.vb:244
    Bases_Services_Cea_Soumission_Base.btnSubmit_Click(Object sender, EventArgs e) in D:\wwwroot\tcwwwqcdev\Quebec\CSVA-VSCA\Bases\Services\Soumission_Base.ascx.vb:55
    System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
    System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
    System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

  2. #2
    Rédacteur
    Avatar de lutecefalco
    Profil pro
    zadzdzddzdzd
    Inscrit en
    Juillet 2005
    Messages
    5 052
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : zadzdzddzdzd

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 052
    Par défaut
    Si t'es sur un windows server, faut donner les droits au user NETWORK SERVICE

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [ASP.NET-IIS]Access to the path 'E:\*' is denied
    Par Mictou dans le forum ASP.NET
    Réponses: 12
    Dernier message: 15/02/2010, 18h12
  2. User control: the path is not of a legal form
    Par stephane_sg dans le forum Windows Forms
    Réponses: 1
    Dernier message: 21/05/2008, 03h43
  3. [C#]Access to the path denied
    Par zitoun dans le forum ASP.NET
    Réponses: 1
    Dernier message: 04/06/2007, 10h38
  4. Could not find a part of the path
    Par Poussy-Puce dans le forum ASP.NET
    Réponses: 5
    Dernier message: 02/02/2007, 19h56
  5. Réponses: 3
    Dernier message: 17/01/2007, 13h20

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