hurlis Skrevet 28. januar 2006 Del Skrevet 28. januar 2006 Får feilmeldingen: Access to the path:............... \Statistikk\morten" 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 "................\Statistikk\morten" 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. Source Error: Dim xmlWriter As New XmlTextWriter(dirpathSvg, utf8) Har prøvd å gi full tilgang til alle brukerne, endret i web.config mellom impersonate=false og true, men ingenting fungerer, får fortsatt samme feilmelding, eller "Connct to Machine" Pop up. Ved Cancel -->samme feilmelding. IIS 6.0 og ASP.NET 1.1. Nokon som kan hjelpe? Lenke til kommentar
j000rn Skrevet 30. januar 2006 Del Skrevet 30. januar 2006 Gitt tilgang til maskinnavn\ASPNET ? Sikker på at path'n er riktig? Det var veldig mange .....'er der. Bruk Server.MapPath(..) for å sjekke at den faktisk stemmer. Du kan velge en bruker å impersonate med. Hvis du ikke gjør dette vil den prøve å bruke windowsbrukeren som requester siden. Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå