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

Writing a file to machine on LAN with ASP.NET. Can't get path statement right?

Hi:

My ASP.NET application writes a file to hard drive. The problem I'm having
is getting a valid path to another machine on LAN to receive file. It works
fine when writing to virtual directory or local hard drive, but when I try
to point it at another machine on LAN (not machine web server is running on)
it bombs. How do you define such a path for the File.CreateText() method
constructor?

Thanks,
Charlie
Nov 18 '05 #1
3 1146
1) fix your clock
2) how are you pointing to the other machines? \\pcname\share or x:\folder
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi:

My ASP.NET application writes a file to hard drive. The problem I'm having is getting a valid path to another machine on LAN to receive file. It works fine when writing to virtual directory or local hard drive, but when I try
to point it at another machine on LAN (not machine web server is running on) it bombs. How do you define such a path for the File.CreateText() method
constructor?

Thanks,
Charlie

Nov 18 '05 #2
I'm using the \\pcname\directory

Thanks,
Charlie
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
1) fix your clock
2) how are you pointing to the other machines? \\pcname\share or x:\folder
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi:

My ASP.NET application writes a file to hard drive. The problem I'm

having
is getting a valid path to another machine on LAN to receive file. It

works
fine when writing to virtual directory or local hard drive, but when I try to point it at another machine on LAN (not machine web server is running

on)
it bombs. How do you define such a path for the File.CreateText() method constructor?

Thanks,
Charlie


Nov 18 '05 #3
Most likely you are having security issue.
The problem is that ASP.NET account is not domain account and you can not
give permissions to folder on another machine.

Make this folder accessible to everyone on that machine,
George.

"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...
I'm using the \\pcname\directory

Thanks,
Charlie
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:OT**************@TK2MSFTNGP11.phx.gbl...
1) fix your clock
2) how are you pointing to the other machines? \\pcname\share or x:\folder


--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Charlie@CBFC" <ch*****@comcast.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi:

My ASP.NET application writes a file to hard drive. The problem I'm

having
is getting a valid path to another machine on LAN to receive file. It

works
fine when writing to virtual directory or local hard drive, but when I try to point it at another machine on LAN (not machine web server is
running on)
it bombs. How do you define such a path for the File.CreateText()

method constructor?

Thanks,
Charlie



Nov 18 '05 #4

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

Similar topics

2
by: Aaron Reimann | last post by:
I have a function here that will (with some other functions not shown here) display some results from a database. Here is the code: function display_song_list($fd, $e) { global...
7
by: Brian Burgess | last post by:
Hi all, Anyone see anything wrong with the following: *************************************************************** <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit Dim nAcctNbr Dim...
0
by: Bill Burwell | last post by:
I am converting a VB6 WebClass application to VB.Net. Used the VB upgrade tool to do the conversion - and it left me a lot of little code things to do. Did those code things and got my app to...
10
by: Kristian Nybo | last post by:
Hi, I'm writing a simple image file exporter as part of a school project. To implement my image format of choice I need to work with big-endian bytes, where 'byte' of course means '8 bits', not...
6
by: MattC | last post by:
I have some code that correctly writes to the eventlog on my local machine. I have installed the application on the Live server and all is not well, no event log entries. My development box...
10
by: Paul | last post by:
Hi I am using the HtmlInputFile control to upload a file from a client to a server. I have a browse to find the file on the server but need to create the path dynamically as to were it will go...
4
by: Jamey Shuemaker | last post by:
A2k2 with user-level security and all preventive measures, vis a vis, Security FAQ enabled or enacted. I've got three DBs, which due to size constraints can't, or rather, probably shouldn't be...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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...
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.