473,721 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2894
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*****@discus sions.microsoft .com> wrote in message
news:F8******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:F8******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:33******** *************** ***********@mic rosoft.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*****@discus sions.microsoft .com> wrote in message
news:F8******** *************** ***********@mic rosoft.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
821
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 client machine is predefined within the program, I am using the HTMLInputFile control, postedfile, saveas ... and set the input control visibility to hidden. However, the control value is read only and there is no way I can set the client file...
3
320
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 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...
1
1914
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 me. One more thing if it is possible to open file which is there on client's pc in read mode, then which class i need to user.
0
2412
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 done in VB.NET. The Code i used to Open the file --------------------------------------------- Dim oWordApplic As New Word.ApplicationClass Dim oDoc As Word.Document Dim strFileName As String =...
1
2361
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 file needs to be saved on the client machine for the offline application to work. when the user works on the offline module the data in the saved xml file gets updated. The data from the updated xml file needs to be written back to the main...
9
6413
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 application on single machine(sever and client). But when I am running my application on other machines(client) I am not able to read the files(*.csv). It is throwing FileNotFoundException. How should I read the file from client machine. Can MIME be...
1
2821
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 javascript or ajax please let me know Thanks
1
4269
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
1804
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 error.. I have installed IIS, sql & .NET framework in the client system, I still get error...... can anybody helpme to run my ASP file in a client machine plzzz.
0
9367
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9064
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6669
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.