Avatar of marky102
marky102
 asked on

asp.net

i have a drive path to a file on my local machine and i need an asp.net page on the  server to read and upload this file.

I get the error can not find file using FileUpload.FileName.

thanks
Scripting LanguagesWeb Languages and StandardsWeb Development Software

Avatar of undefined
Last Comment
marky102

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
plusone3055

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
bfrostmbi

Need more info. Are both machines on the same network? AD domain? Does the account that the site is using have permissions to that path? Is the client machine always the same or do you need to upload files from this path on which ever machine the site is accessed from?
marky102

ASKER
more info:

On the network,  the user logs on, and wants  to access and upload a file from their local  machine, while logged on to an asp.net page. So they already have all the permissions needed. The client machine doing the accessing can be different users, but they will always try to access and upload a file from their local machine. Yes which ever machine the site is accessed from.

thnks
bfrostmbi

One more ?

Is the file always in the same directory regardless of user or client machine, or would giving them an option to browse for the file be more acceptable?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
marky102

ASKER
the user browses for the file of their choice, therefore the file can be in different locations .

thnks
marky102

ASKER
good work