Access to the path .... is denied

Fermé
birka - 7 juil. 2009 à 13:31
 birka - 7 juil. 2009 à 13:38
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 (https://www.microsoft.com/en-us/download/details.aspx?id=55984 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

1 réponse

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 .
0