467,075 Members | 1,134 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

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

Problem occured when i placed my working folder in the server

hi all,
it's me again. i'm using ASP.NET Web Application, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because i wanted the user to browse a specific file in their own directory.

Everything was working fine when i was working on my local PC.......The problem come when i placed the folder to the SERVER. Mapping to the server(http:12:12:12.12/kelly/index.aspx), when i click on the File1's button to browse a file in my client PC, the error show "could find file in c:\abc.txt".
Problem occured when i placed my working folder in the server
May i know how to solve this problem?

dim Filename as string
Filename=File1.value
Process(Filename)
Jul 21 '05 #1
  • viewed: 1428
Share:
1 Reply

"Kelly" <Ke***@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
hi all,
it's me again. i'm using ASP.NET Web Application, using a "File Field"component under HTML tab and i do a right click on the component and
select "Run As Server Control". This was done because i wanted the user to
browse a specific file in their own directory.
Everything was working fine when i was working on my local PC.......The problem come when i placed the folder to the SERVER. Mapping to the
server(http:12:12:12.12/kelly/index.aspx), when i click on the File1's
button to browse a file in my client PC, the error show "could find file in
c:\abc.txt". Problem occured when i placed my working folder in the server
May i know how to solve this problem?

dim Filename as string
Filename=File1.value
Process(Filename)

I see you've posted this same question in multiple newsgroups. If you need
to post in multiple groups, please learn to cross-post (place multiple group
names in the newsgroups field of one message), rather than multi-posting
(sending the same message to groups, one at a time). Cross-posting allows a
response posted in one group to automatically appear in all, thus
eliminating redundant responses. That said, cross-posting should be limited
to two or three groups at most.
As to your question:
Is the file you want to access stored in the c:\ root on the server, or is
that where it was on your development PC? Now that your application is on
the server, the local path (c:\abc.txt) applies to the server, not the
client. A file on a remote PC will have to be accessed as such.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michael Groeger | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.