File Upload Access Problems

M

^MisterJingo^

Hi all,

On a 2.0 app i'm working on I'm attemtping to get file uploads to
work. I have given the ASPNET process full access to the upload
directory, but I still get an access densied error. If I set user
account to full accesses then the file uploads fine. The problem is,
the server guys do not want the user account to have such permissions.
How do i go about resolving this? I would have thought giving the
ASPNET process permissions would have been enough.
Any help would be appreciated.

Ps The server is running IIS 6
 
G

Guest

Have you set identity impersonate='true' in web.config file?

Set it to 'false' to carry out upload operation in the context of 'ASPNET'.

Regards,
Augustin
 
M

^MisterJingo^

Augustin said:
Have you set identity impersonate='true' in web.config file?

Set it to 'false' to carry out upload operation in the context of 'ASPNET'.

Regards,
Augustin

Hi Augustin,

I've just set up an account to use for impersonation. This works fine
with some projects, but it causes one of them to stop working. The
project in question is a large portal that uses forms authentication,
utilising a mySQL role provider. When impersonation is enabled on this
application, no user can log in.
 
G

Guest

I have tried this out in the past and i didnt have any issues. I didnt get
what you meant by 'but it causes one of them to stop working'.

Did you mean 'MySQL role provider' works only when impersonation is enabled?

you can even try impersonating for a specific piece of code instead of doing
that for the entire app.

- Augustin
 
M

^MisterJingo^

Augustin said:
I have tried this out in the past and i didnt have any issues. I didnt get
what you meant by 'but it causes one of them to stop working'.

Did you mean 'MySQL role provider' works only when impersonation is enabled?

you can even try impersonating for a specific piece of code instead of doing
that for the entire app.

- Augustin

Hi Augustin,

The project i'm working on (which I took over from someone else) is an
authenticated portal which contains many smaller applications. The main
portal uses a role based authentication model, utilising a MySQL DB. If
I use impersonation in the smaller applications web.config's, it works
fine. But if I try using authentication in the main portals web.config
then it fails to authenticate a users login. I'm not sure why it's
doing this, but i'm looking into it.
Out of curiosity, how do you impersonate a specific piece of code?
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top