473,399 Members | 2,478 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,399 software developers and data experts.

Access denied

Hello. I'm trying to develope a web aplication that read the files from a
directory chosen for an user in his local machine with th e method
System.IO.Dirtectory.GetFiles(directorio). . The problem is that the folder
doesn't has the permissions of the ASPNET user and this has to work in any
computyer and any folder. Can you help me, please?
Nov 19 '05 #1
3 1091
System.IO.Directory.GetFiles(directorio) is a server-side call. It operates
on the server's file system and has nothing to do with client machine.
Basically, you can upload files form client to server one by one with a
standard browser dialog. If you want anything more than this, you have to
use ActiveX controls.

Eliyahu

"Aurelio" <corcharelliARROBAhotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hello. I'm trying to develope a web aplication that read the files from a
directory chosen for an user in his local machine with th e method
System.IO.Dirtectory.GetFiles(directorio). . The problem is that the folder doesn't has the permissions of the ASPNET user and this has to work in any
computyer and any folder. Can you help me, please?

Nov 19 '05 #2
But, how can i upload multiple files simultaneously with a standart browser
dialog?. I need do it.
"Eliyahu Goldin" <re*************@monarchmed.com> escribió en el mensaje
news:ON**************@TK2MSFTNGP14.phx.gbl...
System.IO.Directory.GetFiles(directorio) is a server-side call. It
operates
on the server's file system and has nothing to do with client machine.
Basically, you can upload files form client to server one by one with a
standard browser dialog. If you want anything more than this, you have to
use ActiveX controls.

Eliyahu

"Aurelio" <corcharelliARROBAhotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hello. I'm trying to develope a web aplication that read the files from a
directory chosen for an user in his local machine with th e method
System.IO.Dirtectory.GetFiles(directorio). . The problem is that the

folder
doesn't has the permissions of the ASPNET user and this has to work in
any
computyer and any folder. Can you help me, please?


Nov 19 '05 #3
You can use multiple HtmlInputFile fields on the same form. the user will
still have to select each individual file he wants to upload.

Other than that (such as letting the user select a directory and upload all
its files) you'll have to use a Java applet, an ActiveX or a .NET control
the user will have to approve (security reasons).

Patrice

--

"Aurelio" <corcharelliARROBAhotmail.com> a écrit dans le message de
news:OP**************@TK2MSFTNGP10.phx.gbl...
But, how can i upload multiple files simultaneously with a standart browser dialog?. I need do it.
"Eliyahu Goldin" <re*************@monarchmed.com> escribió en el mensaje
news:ON**************@TK2MSFTNGP14.phx.gbl...
System.IO.Directory.GetFiles(directorio) is a server-side call. It
operates
on the server's file system and has nothing to do with client machine.
Basically, you can upload files form client to server one by one with a
standard browser dialog. If you want anything more than this, you have to use ActiveX controls.

Eliyahu

"Aurelio" <corcharelliARROBAhotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Hello. I'm trying to develope a web aplication that read the files from a directory chosen for an user in his local machine with th e method
System.IO.Dirtectory.GetFiles(directorio). . The problem is that the

folder
doesn't has the permissions of the ASPNET user and this has to work in
any
computyer and any folder. Can you help me, please?



Nov 19 '05 #4

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

Similar topics

2
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what...
0
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
16
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
8
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.