469,332 Members | 6,969 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

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 2663
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Beatrice | last post: by
3 posts views Thread by WM Chung | last post: by
1 post views Thread by archana | last post: by
1 post views Thread by harriegovin | last post: by
1 post views Thread by bharat kavi b | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.