473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

finding network folder

Hi ,
I am a new to asp.net

i am trying to check a folder using following code

directory.exists() -- in C# code behind

it always returns false, and i can able to access it in windows explorer.

what could be the problem?

I Appreciate all the solutions

Regards,
Vijay
Nov 19 '05 #1
3 1285
"Vijay" <Vi***@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.com...
what could be the problem?


1) That you have specified the directory incorrectly.

2) That the ASP.NET user account doesn't have permissions on the network
folder.

Are you getting any errors.
Nov 19 '05 #2
Thanks Mark Rae,

I am not getting any error, i am checking the directory following way,

Response.Write(Directory.Exists(@"z:\foldername")) ; -- returns false

(Z:\ is mapped to a network path)

What should i check now? Help me out,

Regards,
Vijay

"Mark Rae" wrote:
"Vijay" <Vi***@discussions.microsoft.com> wrote in message
news:DD**********************************@microsof t.com...
what could be the problem?


1) That you have specified the directory incorrectly.

2) That the ASP.NET user account doesn't have permissions on the network
folder.

Are you getting any errors.

Nov 19 '05 #3
"Vijay" <Vi***@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
I am not getting any error, i am checking the directory following way,

Response.Write(Directory.Exists(@"z:\foldername")) ; -- returns false

(Z:\ is mapped to a network path)

What should i check now? Help me out,


Ah yes, Z:\ may very well be a network path on your development machine, but
what about the server that the ASP.NET app is running on...?
Nov 19 '05 #4

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

Similar topics

0
1593
by: Nautilus | last post by:
I am writing an application in ASP.Net which generates a list of files from a shared network folder using DirectoryInfo class and then I use the wonderful control, <a...
1
971
by: PeterNZ | last post by:
Hi all, I developped an C# app which is using FileSystemWatcher. If a file is created in a specific folder, it opens the file and does some processing. This functionality works without...
2
1579
by: Rosa | last post by:
Hello Everybody, Is there a class equivalent to DirectoryInfo and FileInfo where I can pass a http:// URL instead of a network path in order to find the youngest file within an Intranet Folder. ...
1
6552
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
4
2467
by: Dixie | last post by:
I want to send a file to each persons home network space. I believe that when a person logs onto a network, some sort of variable is set that identifies the user. Is there any code that would...
4
4654
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
0
3195
by: Niyazi | last post by:
Hi, I created application that store the data in SQL SERVER that reside on network. The client also use this application to access the resources provided with application. But is the client want...
0
1859
by: NSF12345 | last post by:
Iv developed a small program that looks for a file over our network, and copy it to the location of another computer. Im using the "If FileExists("\\oldpc\main share\Folder\file.txt") Then" way of...
1
3555
by: ArunRJ | last post by:
Hi All, I am new to the networking field. I recently had to share a folder in a Windows XP machine A with another XP machine B. The folder in machine A has some .xls files which I need to access...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
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
7328
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
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
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...
0
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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...

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.