By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

Open file in local client machine

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.