Path Access Error
-
I get the error below when trying to write a file from my ASP.NET 2.0 application. c:\inetpub\wwwroot\XpedAsp I have given the IUSR, IWAM, and ASPNET accounts Full Control on this folder, so I'm stumped as to what to try next.
-
I get the error below when trying to write a file from my ASP.NET 2.0 application. c:\inetpub\wwwroot\XpedAsp I have given the IUSR, IWAM, and ASPNET accounts Full Control on this folder, so I'm stumped as to what to try next.
-
I get the error below when trying to write a file from my ASP.NET 2.0 application. c:\inetpub\wwwroot\XpedAsp I have given the IUSR, IWAM, and ASPNET accounts Full Control on this folder, so I'm stumped as to what to try next.
A colleague lending a fresh pair of eyes to the problem helped me discover that my actual file name was null. Using Server.MapPath on that returned only the web application root, sans file. It looks like the constructor for StreamWriter was attempting to open the root path as if it was a file, giving the access denied error.