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 > migration_to_asp.net.migrating_from_asp.net_1.x_to_asp.net_2.0 Tags:
Item Type: NewsGroup Date Entered: 9/8/2005 4:06:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
artwait
Asp.Net User
Accessing images in a protected directory from an unprotected directory9/8/2005 4:06:51 PM

0/0

Hi Folks,

I've got an asp.net app that I've updated to VS 2005 beta 2.

In my .Net 1.1 version, I stored images in a directory (called 'images') in a sub-directory (called 'app') that was protected with forms authentication.

I had a parent directory that was *not* protected with authentication. Pages in that parent directory (which was unprotected) pulled images from the protected images folder, and it worked just fine.

Now, however, in 2005 I'm finding that the pages in the parent directory (that is, the unprotected directory) are not able to access images in the protected directory--it just doesn't pull them in.

In 1.1, my understanding was that only aspx and ascx files were protected, and that everything else was accessible. Has that changed with 2005?

Thanks!

Art
kashif
Asp.Net User
Re: Accessing images in a protected directory from an unprotected directory9/9/2005 9:27:32 PM

0/0

Art,

From your post - this seems to be your directory structure

Root
   - app
      -images

Did you protect the app folder using location tags in your app's web.config or by adding the authorization section to a config under the app folder. Irrespective of that files not mapped to serve via the aspnet_isapi should not undergo authentication. Can you check the script mapping for your site and verify that *.* is not mapped to the aspnet isapi. I tried the scenario above and I am able to see the images being served correctly when browsing to pages from an unprotected folder where the image resides under a folder which has been protected using forms auth.

Thanks,
Kashif
AbulAwad
Asp.Net User
Re: Accessing images in a protected directory from an unprotected directory9/13/2005 7:36:10 PM

0/0

Kashif,

I need to do the opposite behavior.

If a user knows the exact url for an image, he/she can view it.

How can I get *.* (my images and documents in subfolders) and not only aspx to be protected as well?
Can this be done programmatically or through web.config in case you don't have access to IIS?

Thanks

AbulAwad

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
DRM 2003. Authors: ACM, Pages: 0, Published: 2003

Web:
NAUauthZ - Web Developer Configuration for IIS Jun 5, 2007 ... An example of this would be referencing protected images from another directory where that directory is also configured as an application in ...
WebCom Guide - Access Authorization - Welcome Page Note: If an image or file located in a "protected" directory is included in a file stored in an unprotected directory, users will not be able to access that ...
best strategy for flash access to an image in a protected folder i'm looking for a good strategy for my swf to be able to load images in a password protected directory. since flash can't access a file ...
How-to find interesting video, sound and image files in ... First of all, what’s an unprotected web directory? ... If you try to access a non-password controlled directory that does not have an index file, ...
diofant user access manager login-area-dir2(news) - the second directory of protected area; at first it's unprotected; - your-web-other-files - other web directories and files ...
Protecting Your Site with Access Controls Jan 26, 1998 ... If run from within a protected directory, however, it will return the user name that was used to access that directory. ...
Intelligent Password Verification Dec 21, 2007 ...

Not authorised to access this secure directory. ... contents of the directory containing a typical password protected document: ...
image src and relative path - PHP I'm trying to show images that are in a protected directory. I can't move ... Then copy them to an unprotected directory. Quote:. Originally Posted by ...
02/05/86 create_dm_file Syntax as a command: create_dm_file path ... You can access an unprotected DM file outside a transaction. (See "Notes.") Access required: You need sma access on the directory in which the DM file is ...
Active Directory Security Guide Without your domain controllers you won't have your Active Directory network infrastructure. With exposed and unprotected domain controllers you also are at ...





Search This Site:










<asp:label> forecolor problem....please help!!!!!

asp.net tries to use firefox

code not working

using custom validator

bind flash to login

allowing outlook activex control to run

how to include images ?

web parts: verb menu is not showing

insert swf in .net page

server application unavailable

using the ie treeview control

how to get the focus to a node ...by code....

appending data from a web form to a csv file.

dotnetnuke 3.1 performance issue - 30secs+ to load a page

file not found

module tutorial

hdi get those cool "xx hours, xx minutes ago" times

any of the existing flaws fixed..

new topics / subjects in asp.net

problem accessing sql data using iis

how to make sessions in asp.net last longer

installing asp.net portal using prtl.exe localfullinstall.bat

how to post a localization on dotnetnuke.com?

configuring iis 5.1 for use with asp.net

debugging a first chance exception in mscorlib.dll

importing webparts problem - what changed in the rtm release

newsletter "from" address problem

msmq install ????

suggestion for forum

databinder.eval: 'system.data.common.dbdatarecord' does not contain a property with the name

 
All Times Are GMT