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

Security Settings of System.IO.FileExists, I should see files

Hi Gang,

I am unable to get either system.io.fileexists() = true or Dir() <> ""
to work in my ASP.net/VS 2003 web project. Can someone tell me or
point me to some instructions on how to enable file enumeration. I
know the files I'm checking for exist. I tried using both the full
path and just enumerating files in the same folder and only specifiying
the file name. In both instances I experienced failure. This must be
a common problem. So thank you so much for a common solution :).

Thanks,
Christian Blackburn

Dec 11 '05 #1
4 2190
Chistian,

You be aware that with this contruction you are checking at server side?

Cor

"Christian Blackburn" <my*********@Yahoo.com> schreef in bericht
Hi Gang,

I am unable to get either system.io.fileexists() = true or Dir() <> ""
to work in my ASP.net/VS 2003 web project. Can someone tell me or
point me to some instructions on how to enable file enumeration. I
know the files I'm checking for exist. I tried using both the full
path and just enumerating files in the same folder and only specifiying
the file name. In both instances I experienced failure. This must be
a common problem. So thank you so much for a common solution :).

Thanks,
Christian Blackburn

Dec 11 '05 #2
Hi Cor,

Yes I'm aware I'm reading files on the server. In fact I think this
works on my ISP, but I can't test that, because the front page
extensions need to be repaired on the remote web server. So I'm just
coding no my own system and want to know what I can do to the security
settings to make it work. Also I know it's System.Io.File.Exists, that
was just a silly typo :).

Thanks,
Christian Blackburn
RawSeattle.org Web Developer

*** Sent via Developersdex http://www.developersdex.com ***
Dec 11 '05 #3
Hi,

In the adminstrative tools in the control panel open up Internet
Information Services (iis) manager. Expand websites -> default website ->
YourWebProject. Right click on your web project and select properties.
Make sure the directory browsing box is checked.

http://support.microsoft.com/default...b;en-us;239053

Ken
--------------------
"Christian Blackburn" <my*********@Yahoo.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
Hi Gang,

I am unable to get either system.io.fileexists() = true or Dir() <> ""
to work in my ASP.net/VS 2003 web project. Can someone tell me or
point me to some instructions on how to enable file enumeration. I
know the files I'm checking for exist. I tried using both the full
path and just enumerating files in the same folder and only specifiying
the file name. In both instances I experienced failure. This must be
a common problem. So thank you so much for a common solution :).

Thanks,
Christian Blackburn

Dec 11 '05 #4
Dear Ken,

Thank you so much. I really, really appreciate it when it works :).

Thanks,
Christian

Dec 13 '05 #5

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

Similar topics

4
by: Ken Winters | last post by:
Whenever I run the Repair/Compact on my database, the security settings on the file change. A 3rd party application can only access the database over the network when the username "Everyone" is...
1
by: Dave | last post by:
I am getting te following error in a ASP.Net app that is running on Win XP Pro (SP2): Server cannot access application directory 'C:\Documents and Settings\dave\My Documents\My Visual Studio...
1
by: Micheal Swenson | last post by:
Hello, I've been tasked with creating a kind of system scanner for Windows XP that checks various security settings (like file access to certain groups). I've been looking for a way to...
2
by: Matthias Wohlmann | last post by:
Hi, I'm getting the following error when trying to start my application using Internet Explorer: "Server cannot access application directory D:\xxx. The directory does not exist or is not...
0
by: Thomas H. | last post by:
Hello, I have a problem with security-settings in a .NET Application. The application has a strong name and is full trusted ("Trust an assembly" - Full Trust), ..NET Security is set "Local...
6
by: alex | last post by:
Hi, this always works: private ConsoleToTextbox myConsole; Console.SetOut(myConsole); But now (a few weeks later i started this project again) i get a non handeld security exception from...
1
by: JM | last post by:
I am using the WebBrowser control in .NET 2.0 Windows based application. I want to use the default IE security settings, privacy settings etc. Is there a way by which I can achieve this ? ...
1
by: =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?= | last post by:
I have already set the Internet Options->Advanced ->Security to "Allow active content to run in files on My Computer" and restarted the browser. If I navigate using the browser to the website...
5
by: jd | last post by:
Hi, I have an application that uses embedded IE windows, which doesn't work if the user has set their IE security settings to high. Is there any way to programmatically obtain the security settings...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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,...

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.