Rechercher : dans
Par :

Access to the path .... is denied

Dernière réponse le 7 jui 2009 à 13:38:07 birka, le 7 jui 2009 à 13:31:02 
 Signaler ce message aux modérateurs

Bonjour,
J'ai une application web que je veux pouvoir faire marcher sur visual studio en utilisant l'IIS. J'ai donc ouvert le project et je l'ai paramétré pour qu'il utilise IIS Web Server. Là j'ai eu l'erreur "The web server is not configured correctly". J'ai regardé sur le net, j'ai testé plusieures solutions proposées, mais aucun changement. J'ai fini par en trouver une (http://msdn.microsoft.com/en-us/library/0y3b8byc(VS.80).aspx) qui, elle au moins, a généré un petit changement : J'ai été dans la fenêtre VS Command Prompt et j'ai tapé cd C:\WINDOWS\Microsoft.NET\Framework\vX.X.xxxxx avec X.X.xxx la version du .Net Framework installée puis aspnet_regiis -i.
Là, en recompilant mon projet j'ai cette erreur "Access to the path 'monpropjet\XML\074FA5881D8C806D8A58B2B9E7A435A21D85340F.xml' is denied". Ce fichier xml est appelé dans le code dans le fichier menu.cs :
<code...
XmlTextWriter xmlMenu = new XmlTextWriter(applicationPath + @"\SI\GP\GUI\XML\" +
Common.BLL.T_SQL.CreatePasswordHash(Group_Id.ToString(), Common.BLL.T_SQL.CreateSalt()) + ".xml", System.Text.Encoding.Unicode);
xmlMenu.WriteStartElement("root");
xmlMenu.WriteRaw("\r\n");
...</code>
Je ne sais pas quoi faire pour résoudre ce problème.
Merci d'avance pour votre aide

Configuration: Windows XP
Firefox 3.0.11

Meilleures réponses pour « Access to the path .... is denied » dans :
[Outlook] Sauvegarder le carnet d'adresses (fichier wab) VoirSauvegarde du carnet d'adresse d'Outlook Méthode n°1 Pour sauvegarder le carnet d'adresses de Microsoft Outlook ou Microsoft Outlook Express, il est nécessaire dans un premier temps de localiser le dossier dans lequel il est situé. Le carnet...
NSIS Error : de nombreux logiciels ne s'installent plus VoirNSIS Error The installer you are trying to use is corrupted or incomplete. This could be the result of a damaged disk, a failed download or a virus. You may want to contact the author of this installer to obtain a new copy. It may be possible...
AiOSoftware VoirÀ chaque démarrage, il apparait un message d'installation d'un programme "AiOSoftware" qui ne peut s'installer, puis un message disant : The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or...

1

 birka, le 7 jui 2009 à 13:38:07

Petite information en plus :
j'ai trouvé cette solution :

To grant ASP.NET write 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.

Mais je n'ai pas la fenêtre de securité dont on parle, peut être parce que je suis sur xp pro .

Répondre à birka
Collection CommentÇaMarche.net