Hello.
I'm trying to write to text file from WCF application, using stream writer and text writer.
I have 2 consumers to the WCF: console application and classic ASP.
Using WCF from console app - the txt file is created and all OK.
Using WCF from classic ASP - I get:
"System.UnauthorizedAccessException: Access to the path 'c:\AAA.txt' is denied."
Why is this?
Thanks.
Loading
Suthish NairPosted Dec 13, 2010, 1:28 PM
When you call a WCF service, the access to the file will not be made under your own identity (as the caller) - it'll be made by either the
ASPNETorNETWORK SYSTEMuser if your WCF service is hosted in IIS, or by the user the NT Service hosting your WCF service is running under.ElvisPosted Dec 13, 2010, 10:21 AM
Subhendu DePosted Dec 13, 2010, 9:42 AM