2

I am trying a very simple action of saving a file into a folder of mine. I am hosting my application on windows 7 using iis 7. When I try saving my file I get the following error:

Access to the path 'C:\MyWebsite\MyFolder' is denied

I am not impersonating, I have given network service full control on the folder. What can be causing this?

Thank you!

Sorry: My mistake, apprently I have an installation of iis 7 (not 7.5)

10
  • the hour is really late and I am stuck on something ridiculous. What am I missing, how is that against Stack Overflow's rules?
    – vondip
    Commented Jul 23, 2010 at 23:38
  • You said that you gave network service the necessary rights but is that the user that the app pool is running under?
    – spinon
    Commented Jul 23, 2010 at 23:43
  • @Gert curious why you feel this is somehow a violation of the site? I would be interested to know for my own personal knowledge.
    – spinon
    Commented Jul 23, 2010 at 23:45
  • @spinon, yes it is. I double checked. I can see that from some reason the folder has the read only attribute on it. Can't seem to get rid of it though.
    – vondip
    Commented Jul 23, 2010 at 23:46
  • 1
    The network admins at my office wouldn't be able to answer this questions, and i feel they are representative of many (most?) admins. I find there is a distinction between "retail" software configuration (with volumous documentation) and custom software configuration. Would you expect an admin to edit a web.config file to change your application's WCF bindings to use bi-directional Transport level authentication with ssl server and client certs? If your admin can do that, please, tell me where i should be looking to hire.
    – Steve
    Commented Jul 24, 2010 at 0:22

1 Answer 1

1

If you never solved this, something else to check - are you overwriting an existing file? If so, make sure it's not read-only. That will give you this same error, and none of the usual permission changes will fix it.

I had a similar setup and had tried everything. That finally did it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.