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 5 1205
Have you set identity impersonate='tr ue' in web.config file?
Set it to 'false' to carry out upload operation in the context of 'ASPNET'.
Regards,
Augustin
"^MisterJin go^" 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
Augustin Prasanna wrote:
Have you set identity impersonate='tr ue' 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.
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
"^MisterJin go^" wrote:
>
Augustin Prasanna wrote:
Have you set identity impersonate='tr ue' 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.
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?
Check out http://support.microsoft.com/kb/306158/ for details on how to
impersonate an user account for a specific piece of code.
"^MisterJin go^" 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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 create.
I tried doing it from the command line by manually placing a fake
upload file in /tmp:
$ ls -ltr /tmp
|
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) documents successfully. Is
there anything we have to take care of, while handling uploads of
excel documents with macros?
Thanks in advance,
|
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 the site, and then i have to select the file to upload.. i used
sendkeys.. and i worked perfect.. BUT ... the computer must be locked for
security ( obviusly ) reazons.. so..i think this probable solutions to
unlock the computer and run the...
|
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.
I want to omit the upload and just retrieve the
location of a file (a sound file in this case), to be included
into a php-generated <embed> tag.
|
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 when the file is inside
a shared folder on my computer. If I try to upload from any other folder it
does not work. Why is this?
Reason being that whenever I upload files on other forums or websites I know
I don't need to have my folder shared...
| |
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 that this is suppossed to end up as a component for others to use,
and therefore I do NOT have access to their global.cs::Session_End()
how do I cleanup files that were uploaded -- but obviously left stranded
when the users aborted/gave up writting...
|
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 write the information about user
name, filename upload, filesize, date and time of uploading into the log
file. (The name of the log file is constructed by Current Year and Current
Month in my program). Is there any problems with writing into the...
|
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 found at
www.srmiles.com/freestuff/ajax_file_uploader/ . you can do multiple
file uploads. each upload will have it's own "form"-tag, so that each
file is uploaded for its own. could be a good solution if there are
"big" uploads.
|
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 code is simple
List<FileInfoAllFiles = new List<FileInfo>();
System.Security.Permissions.FileIOPermission MyPermissions = new
System.Security.Permissions.FileIOPermission
System.Security.Permissions.FileIOPermissionAccess.AllAccess,
|
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script.
What You Need
Any recent...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |