473,396 Members | 1,756 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,396 software developers and data experts.

How to find a file on client?

Hi Experts:

Is there an ASP.NET API to find a file on CLIENT machine? I'm using asp.net
2.0.

Thanks in Advance!
Polaris
Jul 2 '07 #1
6 1305
No. ASP.NET has no knowledge whatsoever about the client; it runs only on the
webserver. In addition, browser security restrictions disallow specific
access to the client filesystem for -- I hope -- obvious reasons. What
exactly is it that you need to do?
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Polaris" wrote:
Hi Experts:

Is there an ASP.NET API to find a file on CLIENT machine? I'm using asp.net
2.0.

Thanks in Advance!
Polaris
Jul 2 '07 #2
There is a technology to achieve this. It is WSH - Windows Scripting Host.
It has nothing to do with asp.net. Your client will have to customize his
security setting to allow it.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Polaris" <et*******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi Experts:

Is there an ASP.NET API to find a file on CLIENT machine? I'm using
asp.net
2.0.

Thanks in Advance!
Polaris


Jul 2 '07 #3
To do that you would have to be running something client side - like an
activeX with appropriate permissions to access the file ssytem from within a
browser, and asp.net is a server side technology with no access to the
client other than to accept a request from it to process something,a nd send
a response. The reponse would need to contain an activeX (or something
else) for the browser to activate it.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Polaris" <et*******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi Experts:

Is there an ASP.NET API to find a file on CLIENT machine? I'm using
asp.net 2.0.

Thanks in Advance!
Polaris

Jul 2 '07 #4
"Polaris" <et*******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Is there an ASP.NET API to find a file on CLIENT machine? I'm using
asp.net 2.0.
To add to what Peter, John and Eliyahu have said, an ActiveX solution is
technically feasible but will need very careful planning, and will only ever
be of any use in a controlled internal environment such as a corporate
intranet where you can manage both the client browser and the local security
settings.

If this is for a public website, you have next to no chance! For one thing,
an ActiveX solution will only be viable for Internet Explorer (you *could*
think about a Java applet instead), but can you imagine how you would feel
if you visited a website which popped up a message saying "Just a second
while we download and install a utility which will scan your hard
drives."... :-)
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 2 '07 #5
java applets run in a sandbox, and will not allow this either. .net
components also run in sandbox and prevent this, but with the cas
utility the user could allow it.

-- bruce (sqlwork.com)

Mark Rae wrote:
"Polaris" <et*******@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Is there an ASP.NET API to find a file on CLIENT machine? I'm using
asp.net 2.0.

To add to what Peter, John and Eliyahu have said, an ActiveX solution is
technically feasible but will need very careful planning, and will only
ever be of any use in a controlled internal environment such as a
corporate intranet where you can manage both the client browser and the
local security settings.

If this is for a public website, you have next to no chance! For one
thing, an ActiveX solution will only be viable for Internet Explorer
(you *could* think about a Java applet instead), but can you imagine how
you would feel if you visited a website which popped up a message saying
"Just a second while we download and install a utility which will scan
your hard drives."... :-)

Jul 2 '07 #6
"bruce barker" <no****@nospam.comwrote in message
news:OS**************@TK2MSFTNGP06.phx.gbl...
java applets run in a sandbox, and will not allow this either
OK - I didn't know that...

Thanks.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 3 '07 #7

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

Similar topics

4
by: Arne | last post by:
Hi, Probably an easy answer to this, but I have not been able to figure it out. How can I find the IP-address of the machine that my Java-program is running on ? Could not find any methods in...
0
by: Amol Shambharkar | last post by:
Hello Everyone, I am hoping someone could help me out with this.I am using Visual Studio .NET 2003 to create a web application on a remote IIS 5.0 server using the File Share web access method.The...
0
by: Kelly | last post by:
hi all, i'm using ASP.NET Web Application writie in VB, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because...
3
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
1
by: Kelly | last post by:
hi all, i'm using ASP.NET Web Application writie in VB, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because...
0
by: nimjerry | last post by:
i am using db2 udb V 9 on aix 5.3 and in db2diag.log alwas has this error occurr below is sample message 2008-03-03-09.45.34.366406+420 I306667A443 LEVEL: Warning PID : 835622 ...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
10
by: CodeNoob | last post by:
please help been working on a project got it down to 5 errors from 100 now i have no idea what to do. Errors: init: deps-jar: Created dir: C:\Users\Tommy\Desktop\build\classes Compiling 306...
6
by: =?Utf-8?B?U2NvdHQgVHJpY2s=?= | last post by:
I followed the instructions from MSDN for Webclient UploadFile and I get an error: Could not find file 'C:\testfile.xls'. If I add the file (c:\testfile.xls) to the server I do not get the error...
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:
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...
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.