473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

File Upload Access Problems

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

Aug 7 '06 #1
5 1190
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

"^MisterJingo^" wrote:
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

Aug 7 '06 #2

Augustin Prasanna wrote:
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.

Aug 7 '06 #3
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

"^MisterJingo^" wrote:
>
Augustin Prasanna wrote:
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.

Aug 7 '06 #4

Augustin Prasanna wrote:
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?

Aug 7 '06 #5
Check out http://support.microsoft.com/kb/306158/ for details on how to
impersonate an user account for a specific piece of code.

"^MisterJingo^" wrote:
>
Augustin Prasanna wrote:
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?

Aug 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: david | last post by:
Hi there, Does anybody know of some restriction that stops the apache user on doing a dos2unix on a file upload from php? I'm getting 'permission denied' on some temp file that it tries to...
3
by: Prakash | last post by:
Hi, We face problems uploading excel (with macros) documents using HTML File Upload. The file contents are corrupted while viewing the same. However, we are able to upload excel (w/o. macros)...
20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
1
by: Thorsten Wienbarg | last post by:
Hi there, after doing some reading on this subject, I found lots of information on how to actually avoid not uploading a file. They don't tell me how to exclude the contents of a file though. ...
4
by: R Reyes | last post by:
I am trying to code a file uploader (for forum/email attachments) from the client computer to a remote web server via the PUT method (since POST is not allowed ). However, the upload works ONLY...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
4
by: HNguyen | last post by:
Hi, I have a Web application in ASP.NET. My Application allows the users upload files into the server after checking their user names and passwords. For each transaction, the Web program will...
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
3
by: Ethan Strauss | last post by:
Hi, I have a C#.Net 2.0 web app which needs to be able to read a bunch of files from a user's computer, but I have not be able to get it to do so without "Access denied" errors. The main piece of...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.