views:

24

answers:

0

Hi! I have a C# web application and want to create a folder and files on server placed in the same DMZ. I do impersonate, the LogonUser succedees. But I get an error when I try Directory.CreateDirectory(directoryname); The error says "Access to the path \server\folder\folder" is denied." & "ASP.NET is not authorized to access the requested resource."

I have Windows Server 2003 R2 (SP2), IIS6. The user I impersonate, ASPNET and NETWORK SERVICE have Full Control on the folder and the share. I use the UNC-name to the remote share. I've tried to map the share but with the same result.

Hoping for help. Thanks! /Stefan