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

Open file in local client machine

Hello all,

My dotnet application configuration is that the client, Web server and
database all reside in 3 different computers. There is a function which can
browse a file and read in the contents. When it is run by Internet explorer
in the client machine, it can browse the file path in the client machine.
However, when the program attempt to read in the file content, there is run
time error. I suspect the program try to read the file in the Web server
which do not has such file.

There is no problem if the client and web server reside in the same computer.

I cannot think of any way to solve the problem at this moment. If you know
of any way, I would be very grateful if you can tell me.

Thanks.
W.M. Chung

Jul 21 '05 #1
3 2864
You can't. This is intentional. We don't want web sites surfing our hard
drives.

Given what you've said, I'm guessing that you have an ASP.Net application
and the client is IE.

IE allows you to select a file for upload. The client can upload the file
to the server. The server can store it on the local hard drive or in a
database. Then the server can do whatever you want with it.

However, the client cannot.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"WM Chung" <WM*****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
Hello all,

My dotnet application configuration is that the client, Web server and
database all reside in 3 different computers. There is a function which
can
browse a file and read in the contents. When it is run by Internet
explorer
in the client machine, it can browse the file path in the client machine.
However, when the program attempt to read in the file content, there is
run
time error. I suspect the program try to read the file in the Web server
which do not has such file.

There is no problem if the client and web server reside in the same
computer.

I cannot think of any way to solve the problem at this moment. If you know
of any way, I would be very grateful if you can tell me.

Thanks.
W.M. Chung

Jul 21 '05 #2
Thanks.

Can anyone give some hint on how to trigger the uploading in client and
trigger the processing in the Web server after it is received ? Is there any
sample code on this ?

"Nick Malik [Microsoft]" wrote:
You can't. This is intentional. We don't want web sites surfing our hard
drives.

Given what you've said, I'm guessing that you have an ASP.Net application
and the client is IE.

IE allows you to select a file for upload. The client can upload the file
to the server. The server can store it on the local hard drive or in a
database. Then the server can do whatever you want with it.

However, the client cannot.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"WM Chung" <WM*****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
Hello all,

My dotnet application configuration is that the client, Web server and
database all reside in 3 different computers. There is a function which
can
browse a file and read in the contents. When it is run by Internet
explorer
in the client machine, it can browse the file path in the client machine.
However, when the program attempt to read in the file content, there is
run
time error. I suspect the program try to read the file in the Web server
which do not has such file.

There is no problem if the client and web server reside in the same
computer.

I cannot think of any way to solve the problem at this moment. If you know
of any way, I would be very grateful if you can tell me.

Thanks.
W.M. Chung


Jul 21 '05 #3
Google on "upload file web .net" and you'll get useful hits like these...

http://www.4guysfromrolla.com/webtech/091201-1.shtml
http://www.ondotnet.com/pub/a/dotnet...04/01/asp.html
http://www.developer.com/net/asp/article.php/3097661

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"WM Chung" <WM*****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
Thanks.

Can anyone give some hint on how to trigger the uploading in client and
trigger the processing in the Web server after it is received ? Is there
any
sample code on this ?

"Nick Malik [Microsoft]" wrote:
You can't. This is intentional. We don't want web sites surfing our
hard
drives.

Given what you've said, I'm guessing that you have an ASP.Net application
and the client is IE.

IE allows you to select a file for upload. The client can upload the
file
to the server. The server can store it on the local hard drive or in a
database. Then the server can do whatever you want with it.

However, the client cannot.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"WM Chung" <WM*****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
> Hello all,
>
> My dotnet application configuration is that the client, Web server and
> database all reside in 3 different computers. There is a function which
> can
> browse a file and read in the contents. When it is run by Internet
> explorer
> in the client machine, it can browse the file path in the client
> machine.
> However, when the program attempt to read in the file content, there is
> run
> time error. I suspect the program try to read the file in the Web
> server
> which do not has such file.
>
> There is no problem if the client and web server reside in the same
> computer.
>
> I cannot think of any way to solve the problem at this moment. If you
> know
> of any way, I would be very grateful if you can tell me.
>
> Thanks.
> W.M. Chung
>


Jul 21 '05 #4

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

Similar topics

3
by: Beatrice | last post by:
I am stuck with this problem and desperately need your help. I would like to upload an xml file or any file from client machine and then save it to the server machine. Since the file path on the...
3
by: WM Chung | last post by:
Hello all, My dotnet application configuration is that the client, Web server and database all reside in 3 different computers. There is a function which can browse a file and read in the...
1
by: archana | last post by:
Hi all, I am new to asp.net. I heard somthing like we can't open file which is there on client pc without uploading that file onto out server. Is it right? If i am wrong then please correct...
0
by: senthilavs | last post by:
Hi, Im having word document in the Server Machine. While im trying to open the file in Client Machine file is opening in Server only. I need to open in the client only. This is an ASP.NET project...
1
by: harriegovin | last post by:
Hi, Here is the scenario. I have a web application written in vb.net. One of the functionalities of the application is to save the recordset in an xml format on to the client machine. The xml...
9
madhoriya22
by: madhoriya22 | last post by:
Hi, I am using jsp and servlets in my application. In this application I am reading contents of *.csv files and uploading them to database. Now this thing is working fine when I am running my...
1
by: Reemajain | last post by:
Hi All, I want to upload a text file from client local machine in my ASP.NET application without user intervantion ,file is at predefined location.....If there is any way to get it through...
1
by: aeMadhavan | last post by:
Hi, Without using fileupload control, what is the way to store a file from client machine to web server. FYI, a text box has the path the client machine file. Thanks Madhavan.
1
by: bharat kavi b | last post by:
Am doing a simple project in ASP .NET, I have all the codings and database in my system.... But I need to run my ASP file in a client machine by using the URL path...... I tried it but I got with...
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: 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:
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
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
Oralloy
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,...
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,...
0
isladogs
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...

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.