Avatar billede 131421 Nybegynder
28. juni 2005 - 14:30 Der er 2 kommentarer og
1 løsning

CreateDirectory virker ikke(security problemer)

Hej med jer

Jeg prøver at lave en side, hvor man kan lave en ny mappe ved at trykke på en knap. Men jeg blir ved at få følgende fejl:
"Access to the path "C:\Inetpub\wwwroot\ASP\haha" 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 "C:\Inetpub\wwwroot\ASP\haha" 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 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."

ps. jeg kan godt oploade filerne til "C:\Inetpub\wwwroot\ASP" men jeg kan bare ikke få lov at lave en ny mappe derinde...
Avatar billede 131421 Nybegynder
28. juni 2005 - 14:32 #1
har sat hak ved read and write i IIS, og i web.config har jeg sat authentication til none. men det hjalp ik
Avatar billede 131421 Nybegynder
28. juni 2005 - 14:50 #2
har fået det til at virke nu.....lukker
Avatar billede idiotbarn Nybegynder
09. oktober 2005 - 20:19 #3
kunne man få dig til at skrive hvad du gjorde? jeg har samme problem :(
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester