locked
Please someone tell me if this syntax looks correct for FileStream RRS feed

  • Question

  • User-1590803191 posted

    Stream _stream = new FileStream(fullpath, System.IO.FileMode.Open, System.IO.FileAccess.Read );  This is where it dies

     

    I am now getting Access denied error message. I have the impersonate set to True in web.config and a service account name and password with full access to this fileserver. So what am I doing wrong?

     

    thanks,  SMA49

    Tuesday, May 15, 2012 5:13 PM

All replies

  • User1618479829 posted

    You can try this.

    If you are using IIS 6 , please add aspnet user a/c for read access.

    If you are using IIS7 or above , please add IIS_IUSRS group for read access

    Tuesday, May 15, 2012 8:36 PM