asp.net write permission on w2k domain controller

S

Stephen Witter

I am using sql server reporting services on a domain controller. It
typically uses the aspnet user account, but I had to switch to
IWAM_machine account due to an issue with w2k sp4. Everything works
great, however, when I try to write or stream a file to a directory in
my wwwroot folder using impersonation I get an access denied error
(400). My question is does the aspnet account (which doesn't exist on
a domain controller) still get passed when using impersonation, or
does the IWAM account get passed. Here is the code:

Try
Dim TempDir as string =
Server.mappath("/TempReports/tempReport." &
SelectExtension)
Dim stream As FileStream = File.Create(TempDir, result.Length)
stream.Write(result, 0, result.Length)
stream.Close()
Dim sFileName as string =
"http://MyWebServer/TempReports/tempReport." & SelectExtension
response.redirect(sFileName)
Catch ex As Exception
Response.write(ex.Message)
End Try

It bombs before the file is created. Any suggestions?
 
A

Alvin Bruney [MVP]

Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top