Reputation: 77876
Any idea which account IIS uses to run asp.net project. My project or code access file which is in C:\path\path directory. When I test the project in my machine it runs fine (well I am running in built server; Cassini) but when I test the same project in development server where it uses IIS 6.0 ... my code throws a exception "Access to the file C:\path\path is denied".
Not sure how can I solve this? any idea?
Thanks a lot.
Rahul
Upvotes: 0
Views: 476
Reputation: 4126
Find the identity used by the application pool your web application runs under. Here are steps for IIS 6:
Upvotes: 1
Reputation: 17156
Use the IIS Manager to verify which Application Pool that is running the site you want to investigate.
If you look at the properties for the Application Pool, there is a tab named Identity in which you can determine what user is set to run the process.
You can also use the Task Manager to see which user is running the process named w3wp.exe
, which is a process running an instance of IIS (or an Application Pool, in fact).
Upvotes: 1