CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 7/23/2005 9:05:45 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 54 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
mak101
Asp.Net User
File.Exists cannot find files in different server7/23/2005 9:05:45 AM

0/0

I've files (i.e., pdf, doc, etc.) stored in data server, now I've made an appl. in a web server by another server, using ASP.NET technology, I can open the files easily, however now I want to make such the file is existed before I open it in different server, but I cannot get the file.exist result that is true, I wonder it's the access right of the user, but I even don't know what user I'm using can access to two different server.

Can any one has the same experience and already solved ? Thx.

Mak
jseda
Asp.Net User
Re: File.Exists cannot find files in different server8/7/2005 7:43:56 AM

0/0

Hello!

Your description is not clear at all :) But what are you doing? Are you trying to check your files if they exist and then work with them from another physical machine? But you can open those files from your ASP.NET application but the method
First provide us with answers to those questions:
1) What type of authentication are using?
2) Are you sure you've got FileIOPermissionAccess granted in you asp.net app? Do you know that File.Exists is starting stack walk and that you must be sure that all your app parts must provide the permissions? (also this is downgrading your performance in asp.net). By design File.Exists always provide false return when you dont have those permissions so I think this is the issue (the false is returned even when file exists).
3) Have you checked you file path? Is it really working for instance when used in Run... command from your web server?

My recommendation for fast resolution of your problem would be to use Demand for appropriate FileIOPermission before you call File.Exists method. So this way you can be sure if you have the privileges (but this is for testing, after solving that remove demand from your code).

Regards,
Jan Seda
Senior Software Architect
MVP - Security
www.skilldrive.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Special Edition Using Visual Basic .Net Authors: Brian Siler, Jeff Spotts, Safari Tech Books Online, Pages: 830, Published: 2002
MySQL Administrator's Guide and Language Reference: Administrator's Guide and Language Reference Authors: MySQL AB., MySQL AB, Pages: 860, Published: 2006
The Best Damn Server Virtualization Book Period: Including Vmware, Xen, and Microsoft Virtual Server Authors: Rogier Dittner, Kris Buytaert, David Rule, David Rule, Jr., Juan R. Garcia, Twan Grotenhuis, Davit E. Hart, Pages: 931, Published: 2007
A System Administrator's Guide to Sun Workstations Authors: George Becker, Kathy Slattery, Pages: 288, Published: 1991
New Computing Environments: Parallel, Vector and Systolic Authors: Arthur Wouk, United States Army Research Office. Mathematical Sciences Division, Stanford University Computer Science Dept, Pages: 270, Published: 1986
Managing and Maintaining a Windows Server 2003 Environment: Exam Cram 2 70-275 Authors: Dan Balter, Ed Tittel, Pages: 600, Published: 2003
Information Security Management Handbook Authors: Harold F. Tipton, Micki Krause, Pages: 578, Published: 2005
Computerized Monitoring and Online Privacy Authors: Thomas A. Peters, Pages: 402, Published: 1999
The Definitive Guide to MySQL 5 Authors: Michael Kofler, David Kramer, Pages: 748, Published: 2005
Hack Proofing ColdFusion: The Only Way to Stop a Hacker Is to Think Like One Authors: Syngress, Greg Meyer, Rob Rusher, Steven Casco, David An, Daryl Banttari, Pages: 512, Published: 2002

Web:
file.exists() timeout? Is there any other reason why file.exists() would fail to find a file .... the file is located on a different server then my servlet cannot ...
TheMSsForum.com >> Portal Server >> 'The file exists. (Exception ... When I configure mail server address, there is message : 'Cannot save the ...... different SID, causing the "File exists" error when the user tried to ...
SVN Guide tortoise add commit already-exists copy-and-rename · svn: can't open file '.svn\ entries': the system cannot find the path specified ...
Check to see if file exist on server - SQL Server - How do I install Query Alayzer to go along with this Tag: Check to see if file exist on server. 9 · "Can't find PInvoke DLL 'dbnetlib.dll'. ...
windowsce embedded "The file exists" Windows CE 5.0 + Windows ... The file exists." All folders and units are listed, but I can not access to them . With the same Windows CE 5.0 and Windows Server 2003 I ...
vbscript check: file exists? : file, vbscript, check, exists I have a storage device which has pointers to file on another server. ... I'm not at work, so I can't even use print screen, and I also can't find anything ...
Server Cannot Find File - Podcast Pickle Forums However, when I point QT to the actual file on my server, it will open it without problems. ... doesn't exist, at least I can't see it. ...
htaccess file exists in the proper directory, but Drupal can't ... I have checked and checked, and that file exists on the server in the ... Can anyone think of a reason Drupal can't see the htaccess file? ...
Sysinternals Forums: Need a Wizard! File exist but not found! I used Filemon to track down a file that I am able to play, but I can not find on my computer anywhere! It is a 400Mb documentary and I was ...
The Web server cannot find the file or script you asked for... COM/ is either currently unavailable or no longer exists. Please check the URL to ensure that the path is correct and contact the server's administrator if ...

Videos:
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet Design. P...
Kirby Air Ride another video
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQ...
KCRW Podcasting and Mobilcasting Google Tech Talks September 13, 2006 Jason Georges http://www.kcrw.com ABSTRACT Jason Georges from the local public radio station will be in the Sa...
A Googly MySQL Cluster Talk Google TechTalks April 28, 2006 Stewart Smith Stewart Smith works for MySQL AB as a software engineer working on MySQL Cluster. He is an active memb...
Using open source tools for performance testing Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Goranka Bjedov
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...
The Sony PSP PlayStation Portable in depth The Sony Playstation Portable (PSP) plays crystal clear movies as well as games - is it an iPod killer? September 1 2005 is the launch date in Austra...
How To Break Web Software - A look at security vulnerabilities in web software Google TechTalks April 13, 2006 Mike Andrews Mike Andrews is a senior consultant who specializes in software security and leads the web application...




Search This Site:










how to execute a php script and test its response from within an asp.net application

delay after page render

getting the page file name from within masterpage

c# question

getting data from php page

regex class and thread safety

dnn layout

problem with registering and login redirection

div tags and master pages

memory allocation when creating an object of exception class

hide or display a section of a page depending on the user's role?

.net code for sql server express

how do i make a data driven website ?

programmatic control of menu items

issus with web sitemap control

drop down list sending numbers not actual values to database

i would like to have same datetime format for whole project. how should i do it???

adding specific controls to a collection to look them up later.

a simple forum

how to see a checkboxlist inside a page view

powerreports pro for dnn 2

ebay alike system

after decrypting an .exe, i'm unable to run it

report builder: how to display boolean fields as yes/no instead of true/false

form authentication

need to detect bugs fast.

how do i extend the announcements module to include more userprofile info?

problem on deploying large website

telnet session?

breadcrumb help

 
All Times Are GMT