Getting access to a folder programmatically

G

Guest

Hi there,

I've been trying to get information about the proper way to do the
following, but haven't got it yet in spite of all the research I've done for
the past week.

I just want to move some files from my web server to a content server. An
aspx page uploads a zip file. Then the page invokes a C# class library
developed by me. This library unzips the uploaded zip file into a temporary
folder in the web server, makes some validations against those unzipped
files, and move them to a shared folder in a content server.

When it tries to move these files, an "Access to path is denied" error is
thrown. This is obviously due to security constraints. Granting privileges
to ASPNET user account just won't do it.

What I intend to do is to try to access the path on behalf of a domain user
account that does have privileges to it. But due to company policies we
cannot use that domain user account as the aspnet_wp user. Instead, we need
to use the designated domain user account only at the moment of moving the
files to the content server.

I just want to be pointed to the right direction. Any suggestions are
welcomed. Articles, forum posts, etc. will also help.

Many thanks in advanced.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top