I have a web application that include a reference which will create a new folder when the reference’s method is called.
However i have an error when my application call the method.
Access to the path 'TempPDFStorage/' is denied.
I try the same thing in windows form. It have no issue and the new folder will be created in the bin/debug/
What should i do??
Are you trying to access this path on the client machine or server? If you have rights to IIS you can impersonate a user for your application that has rights to that directory and you should be fine then.
To set the security context of a user with permissions:
Conversely, to impersonate as an unauthenticated user you can do this: