473,383 Members | 1,795 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,383 software developers and data experts.

Resource protected by Form based aythetication

I can not figure out what is the problem that I can protect ASP.NEt form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form authentication.
When I access all aps forms, it works fine and ask me user/password. However,
I can use IE browser to directly access any image file in subfolder images.

My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>

</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>

<deny users="?" />
</authorization>
</system.web>
</location>
Nov 19 '05 #1
13 1661
If the images are .JPG or some other file extension IIS handles directly,
then configuration in web.config won't apply, since the request never makes
it there. You can either control security on the files so that anyonymous
users can't access the files but thie requires IIS to do the authentication,
which from your other thread, I don't think you want. In that case you should
map the .JPG request to the aspnet_isapi.dll and let the built in StaticFileHandler
serve up the JPGs and then the web.config settings will take effect.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I can not figure out what is the problem that I can protect ASP.NEt
form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.
My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>
</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>


Nov 19 '05 #2
Brock's suggestion of using IIS to manage the permissions is a good one.
Another approach is to manually manage the permissions of your files by
keeping them in a database or a private folder. Then you can use
Response.Write after you've determined the user has the necessary
permissions.

Here's more info:
http://steveorr.net/articles/EasyUploads.aspx
http://msdn.microsoft.com/library/de...efiletopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"david" <da***@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
I can not figure out what is the problem that I can protect ASP.NEt form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.

My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>

</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>

<deny users="?" />
</authorization>
</system.web>
</location>

Nov 19 '05 #3
Thank your comments from both of you.
Because I use the Form based authentication, so IIS should be set as
anonymous. Therefore, the image files are not protected by directly access
from any user. Am I right? Now the question is that if I still use the form
based authentication, how can I set the security property of the images
folder (right now it is not shared by web and others)?
If I put other type image files (my own version), does it protect them?

David

"Steve C. Orr [MVP, MCSD]" wrote:
Brock's suggestion of using IIS to manage the permissions is a good one.
Another approach is to manually manage the permissions of your files by
keeping them in a database or a private folder. Then you can use
Response.Write after you've determined the user has the necessary
permissions.

Here's more info:
http://steveorr.net/articles/EasyUploads.aspx
http://msdn.microsoft.com/library/de...efiletopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"david" <da***@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
I can not figure out what is the problem that I can protect ASP.NEt form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.

My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>

</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>

<deny users="?" />
</authorization>
</system.web>
</location>


Nov 19 '05 #4
Could you give me a hint who to do the job "you should
map the .JPG request to the aspnet_isapi.dll and let the built in
StaticFileHandler
serve up the JPGs and then the web.config settings will take effect."

Thank you
"Brock Allen" wrote:
If the images are .JPG or some other file extension IIS handles directly,
then configuration in web.config won't apply, since the request never makes
it there. You can either control security on the files so that anyonymous
users can't access the files but thie requires IIS to do the authentication,
which from your other thread, I don't think you want. In that case you should
map the .JPG request to the aspnet_isapi.dll and let the built in StaticFileHandler
serve up the JPGs and then the web.config settings will take effect.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I can not figure out what is the problem that I can protect ASP.NEt
form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.
My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>
</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>


Nov 19 '05 #5
Yeah, you need to go into IIS for your application. Right-click properties,
select the Directory Tab and hit the configuration button. On the Mappings
tab, add a new mapping. The executable is "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et_isapi.dll"
(assuming you're on v1.1). The extension is *.JPG. This maps the request
to ASP.NET which will then honor your security settings.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Could you give me a hint who to do the job "you should map the .JPG
request to the aspnet_isapi.dll and let the built in StaticFileHandler
serve up the JPGs and then the web.config settings will take effect."

Thank you

"Brock Allen" wrote:
If the images are .JPG or some other file extension IIS handles
directly, then configuration in web.config won't apply, since the
request never makes it there. You can either control security on the
files so that anyonymous users can't access the files but thie
requires IIS to do the authentication, which from your other thread,
I don't think you want. In that case you should map the .JPG request
to the aspnet_isapi.dll and let the built in StaticFileHandler serve
up the JPGs and then the web.config settings will take effect.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I can not figure out what is the problem that I can protect ASP.NEt
form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in
a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.
My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>
</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>


Nov 19 '05 #6
Hi, Brock:
I have done it following your direction. At the beginning, it seems work but
something else wrong. Now it doesn't work. Is there something missing in my
configuration? Do I need add a web.config into images directory? If so, what
shloud it look like?

"Brock Allen" wrote:
Yeah, you need to go into IIS for your application. Right-click properties,
select the Directory Tab and hit the configuration button. On the Mappings
tab, add a new mapping. The executable is "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et_isapi.dll"
(assuming you're on v1.1). The extension is *.JPG. This maps the request
to ASP.NET which will then honor your security settings.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Could you give me a hint who to do the job "you should map the .JPG
request to the aspnet_isapi.dll and let the built in StaticFileHandler
serve up the JPGs and then the web.config settings will take effect."

Thank you

"Brock Allen" wrote:
If the images are .JPG or some other file extension IIS handles
directly, then configuration in web.config won't apply, since the
request never makes it there. You can either control security on the
files so that anyonymous users can't access the files but thie
requires IIS to do the authentication, which from your other thread,
I don't think you want. In that case you should map the .JPG request
to the aspnet_isapi.dll and let the built in StaticFileHandler serve
up the JPGs and then the web.config settings will take effect.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I can not figure out what is the problem that I can protect ASP.NEt
form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in
a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.
My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>
</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>


Nov 19 '05 #7
So when you say something else is wrong, what exactly isn't working? You
your pages still work? Do you get an error from ASP.NET?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi, Brock:
I have done it following your direction. At the beginning, it seems
work but
something else wrong. Now it doesn't work. Is there something missing
in my
configuration? Do I need add a web.config into images directory? If
so, what
shloud it look like?
"Brock Allen" wrote:
Yeah, you need to go into IIS for your application. Right-click
properties, select the Directory Tab and hit the configuration
button. On the Mappings tab, add a new mapping. The executable is
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et_isapi.dll"
(assuming you're on v1.1). The extension is *.JPG. This maps the
request to ASP.NET which will then honor your security settings.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Could you give me a hint who to do the job "you should map the .JPG
request to the aspnet_isapi.dll and let the built in
StaticFileHandler serve up the JPGs and then the web.config settings
will take effect."

Thank you

"Brock Allen" wrote:

If the images are .JPG or some other file extension IIS handles
directly, then configuration in web.config won't apply, since the
request never makes it there. You can either control security on
the files so that anyonymous users can't access the files but thie
requires IIS to do the authentication, which from your other
thread, I don't think you want. In that case you should map the
.JPG request to the aspnet_isapi.dll and let the built in
StaticFileHandler serve up the JPGs and then the web.config
settings will take effect.

-Brock
DevelopMentor
http://staff.develop.com/ballen
> I can not figure out what is the problem that I can protect
> ASP.NEt
> form
> resource but not some other type of files, for example, images.
> All my aspx forms located in Demo folder and image files located
> in
> a
> subfolder of Demo, named images. I implement Role based form
> authentication.
> When I access all aps forms, it works fine and ask me
> user/password.
> However,
> I can use IE browser to directly access any image file in
> subfolder
> images.
> My configuration:
> <authentication mode="Forms">
> <forms name="AuthCookie" loginUrl="login.aspx" path="/"
> protection="All"> </forms>
> </authentication>
> <authorization>
> <deny users="?" /> <!--deny anonymous users-->
> <allow users="*" /> <!-- Allow all users -->
> </authorization>
> <location path="images">
> <system.web>
> <authorization>
> <deny users="?" />
> </authorization>
> </system.web>
> </location>


Nov 19 '05 #8
Hi, Steve:
Thank you very much.
You mean that I can use Response.WriteFile instead of Response.write. Am I
right?

David

"Steve C. Orr [MVP, MCSD]" wrote:
Brock's suggestion of using IIS to manage the permissions is a good one.
Another approach is to manually manage the permissions of your files by
keeping them in a database or a private folder. Then you can use
Response.Write after you've determined the user has the necessary
permissions.

Here's more info:
http://steveorr.net/articles/EasyUploads.aspx
http://msdn.microsoft.com/library/de...efiletopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"david" <da***@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
I can not figure out what is the problem that I can protect ASP.NEt form
resource but not some other type of files, for example, images.
All my aspx forms located in Demo folder and image files located in a
subfolder of Demo, named images. I implement Role based form
authentication.
When I access all aps forms, it works fine and ask me user/password.
However,
I can use IE browser to directly access any image file in subfolder
images.

My configuration:
<authentication mode="Forms">
<forms name="AuthCookie" loginUrl="login.aspx" path="/"
protection="All"> </forms>

</authentication>
<authorization>
<deny users="?" /> <!--deny anonymous users-->
<allow users="*" /> <!-- Allow all users -->
</authorization>
<location path="images">
<system.web>
<authorization>

<deny users="?" />
</authorization>
</system.web>
</location>


Nov 19 '05 #9
Correct.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"david" <da***@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
Hi, Steve:
Thank you very much.
You mean that I can use Response.WriteFile instead of Response.write. Am I
right?

David

"Steve C. Orr [MVP, MCSD]" wrote:
Brock's suggestion of using IIS to manage the permissions is a good one.
Another approach is to manually manage the permissions of your files by
keeping them in a database or a private folder. Then you can use
Response.Write after you've determined the user has the necessary
permissions.

Here's more info:
http://steveorr.net/articles/EasyUploads.aspx
http://msdn.microsoft.com/library/de...efiletopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"david" <da***@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
>I can not figure out what is the problem that I can protect ASP.NEt form
> resource but not some other type of files, for example, images.
> All my aspx forms located in Demo folder and image files located in a
> subfolder of Demo, named images. I implement Role based form
> authentication.
> When I access all aps forms, it works fine and ask me user/password.
> However,
> I can use IE browser to directly access any image file in subfolder
> images.
>
> My configuration:
> <authentication mode="Forms">
> <forms name="AuthCookie" loginUrl="login.aspx" path="/"
> protection="All"> </forms>
>
> </authentication>
> <authorization>
> <deny users="?" /> <!--deny anonymous users-->
> <allow users="*" /> <!-- Allow all users -->
> </authorization>
> <location path="images">
> <system.web>
> <authorization>
>
> <deny users="?" />
> </authorization>
> </system.web>
> </location>


Nov 19 '05 #10
You can adjust the ACL of the files through IIS or through the standard
windows security tab of explorer.
(For WinXP you might have to turn off simple file sharing to see this tab.)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"david" <da***@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
Thank your comments from both of you.
Because I use the Form based authentication, so IIS should be set as
anonymous. Therefore, the image files are not protected by directly access
from any user. Am I right? Now the question is that if I still use the
form
based authentication, how can I set the security property of the images
folder (right now it is not shared by web and others)?
If I put other type image files (my own version), does it protect them?

David

"Steve C. Orr [MVP, MCSD]" wrote:
Brock's suggestion of using IIS to manage the permissions is a good one.
Another approach is to manually manage the permissions of your files by
keeping them in a database or a private folder. Then you can use
Response.Write after you've determined the user has the necessary
permissions.

Here's more info:
http://steveorr.net/articles/EasyUploads.aspx
http://msdn.microsoft.com/library/de...efiletopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"david" <da***@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
>I can not figure out what is the problem that I can protect ASP.NEt form
> resource but not some other type of files, for example, images.
> All my aspx forms located in Demo folder and image files located in a
> subfolder of Demo, named images. I implement Role based form
> authentication.
> When I access all aps forms, it works fine and ask me user/password.
> However,
> I can use IE browser to directly access any image file in subfolder
> images.
>
> My configuration:
> <authentication mode="Forms">
> <forms name="AuthCookie" loginUrl="login.aspx" path="/"
> protection="All"> </forms>
>
> </authentication>
> <authorization>
> <deny users="?" /> <!--deny anonymous users-->
> <allow users="*" /> <!-- Allow all users -->
> </authorization>
> <location path="images">
> <system.web>
> <authorization>
>
> <deny users="?" />
> </authorization>
> </system.web>
> </location>


Nov 19 '05 #11
At beginning, I have copied the web.config in the parent directory of images.
It shows the arror message about web.config of the comment line. After I
modified it, then I got another error message about the line <authentication
mode="Forms">.
But ther is nothing wrong with. I have deleted the web.config in the
directory images. It does not work anymore, i.e., I can directly access the
image file without asking password. The web.config is in the parent directory
as before and protects the other files. When I configured the mappings in
IIS, I set Verbs limit to GET,HEAD,POST,and DEBUG, or all. In either case,
the result is same. The mappings was configured for the parent directory Demo.

David

"Brock Allen" wrote:
So when you say something else is wrong, what exactly isn't working? You
your pages still work? Do you get an error from ASP.NET?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi, Brock:
I have done it following your direction. At the beginning, it seems
work but
something else wrong. Now it doesn't work. Is there something missing
in my
configuration? Do I need add a web.config into images directory? If
so, what
shloud it look like?
"Brock Allen" wrote:
Yeah, you need to go into IIS for your application. Right-click
properties, select the Directory Tab and hit the configuration
button. On the Mappings tab, add a new mapping. The executable is
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et_isapi.dll"
(assuming you're on v1.1). The extension is *.JPG. This maps the
request to ASP.NET which will then honor your security settings.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Could you give me a hint who to do the job "you should map the .JPG
request to the aspnet_isapi.dll and let the built in
StaticFileHandler serve up the JPGs and then the web.config settings
will take effect."

Thank you

"Brock Allen" wrote:

> If the images are .JPG or some other file extension IIS handles
> directly, then configuration in web.config won't apply, since the
> request never makes it there. You can either control security on
> the files so that anyonymous users can't access the files but thie
> requires IIS to do the authentication, which from your other
> thread, I don't think you want. In that case you should map the
> .JPG request to the aspnet_isapi.dll and let the built in
> StaticFileHandler serve up the JPGs and then the web.config
> settings will take effect.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>> I can not figure out what is the problem that I can protect
>> ASP.NEt
>> form
>> resource but not some other type of files, for example, images.
>> All my aspx forms located in Demo folder and image files located
>> in
>> a
>> subfolder of Demo, named images. I implement Role based form
>> authentication.
>> When I access all aps forms, it works fine and ask me
>> user/password.
>> However,
>> I can use IE browser to directly access any image file in
>> subfolder
>> images.
>> My configuration:
>> <authentication mode="Forms">
>> <forms name="AuthCookie" loginUrl="login.aspx" path="/"
>> protection="All"> </forms>
>> </authentication>
>> <authorization>
>> <deny users="?" /> <!--deny anonymous users-->
>> <allow users="*" /> <!-- Allow all users -->
>> </authorization>
>> <location path="images">
>> <system.web>
>> <authorization>
>> <deny users="?" />
>> </authorization>
>> </system.web>
>> </location>


Nov 19 '05 #12
Hi, Brock:
Today I try to access the image.jpg in images directory, I got the error
message in the following:

--------
Server Error in '/Demo' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:
Line 41: -->
Line 42: <!-- ref. data access reference in SMDN April 7, 2005-->
Line 43: <authentication mode="Forms">
Line 44: <forms name="AuthCookie" loginUrl="login.aspx" path="/Demo" >
<!-- I delete timeout="30", otherwise, I can access without asking password
-->
Line 45: </forms>
Source File: c:\inetpub\wwwroot\Demo\images\web.config Line: 43

------

Is it the correct information for protecting the .jpg files?

David

"Brock Allen" wrote:
So when you say something else is wrong, what exactly isn't working? You
your pages still work? Do you get an error from ASP.NET?

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi, Brock:
I have done it following your direction. At the beginning, it seems
work but
something else wrong. Now it doesn't work. Is there something missing
in my
configuration? Do I need add a web.config into images directory? If
so, what
shloud it look like?
"Brock Allen" wrote:
Yeah, you need to go into IIS for your application. Right-click
properties, select the Directory Tab and hit the configuration
button. On the Mappings tab, add a new mapping. The executable is
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et_isapi.dll"
(assuming you're on v1.1). The extension is *.JPG. This maps the
request to ASP.NET which will then honor your security settings.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Could you give me a hint who to do the job "you should map the .JPG
request to the aspnet_isapi.dll and let the built in
StaticFileHandler serve up the JPGs and then the web.config settings
will take effect."

Thank you

"Brock Allen" wrote:

> If the images are .JPG or some other file extension IIS handles
> directly, then configuration in web.config won't apply, since the
> request never makes it there. You can either control security on
> the files so that anyonymous users can't access the files but thie
> requires IIS to do the authentication, which from your other
> thread, I don't think you want. In that case you should map the
> .JPG request to the aspnet_isapi.dll and let the built in
> StaticFileHandler serve up the JPGs and then the web.config
> settings will take effect.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>> I can not figure out what is the problem that I can protect
>> ASP.NEt
>> form
>> resource but not some other type of files, for example, images.
>> All my aspx forms located in Demo folder and image files located
>> in
>> a
>> subfolder of Demo, named images. I implement Role based form
>> authentication.
>> When I access all aps forms, it works fine and ask me
>> user/password.
>> However,
>> I can use IE browser to directly access any image file in
>> subfolder
>> images.
>> My configuration:
>> <authentication mode="Forms">
>> <forms name="AuthCookie" loginUrl="login.aspx" path="/"
>> protection="All"> </forms>
>> </authentication>
>> <authorization>
>> <deny users="?" /> <!--deny anonymous users-->
>> <allow users="*" /> <!-- Allow all users -->
>> </authorization>
>> <location path="images">
>> <system.web>
>> <authorization>
>> <deny users="?" />
>> </authorization>
>> </system.web>
>> </location>


Nov 19 '05 #13
> It shows the arror message about web.config of the comment line. After
I
modified it, then I got another error message about the line
<authentication
mode="Forms">.


<authentication> can only go in the root web.config of your application.
You can put a child web.config with an <authorization> element though. That
will protect the images directory.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #14

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

Similar topics

3
by: Saradhi | last post by:
How to get the names of all the Resources embedded in a Resource File? -SARADHI
2
by: Don Tucker | last post by:
Hello, I have a Windows Application that needs to load multiple image files in response to users clicking buttons. Currently, I just have these images as .jpg files on disk, but I don't want to...
11
by: Kevin Prichard | last post by:
Hi all, I've recently been following the object-oriented techiques discussed here and have been testing them for use in a web application. There is problem that I'd like to discuss with you...
1
by: Chukkalove | last post by:
I originally created several "copy" resource reader classes which worked great individually, but after I converted them into an parent class with children they no longer find the resources. Each...
5
by: Daniel | last post by:
Hey guys When you hook an event (c# 2.0 syntax): myEvent += MyMethodToFire; You need to also unsubscribe it to avoid a resource leak so that the object it is in gets garbage collected like so...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
5
by: =?Utf-8?B?Unlhbg==?= | last post by:
Hello, I have what I thought was a simple problem, and perhaps there is still a simple solution. I have a page that is using local resource files to store all the necessary control properties on...
61
by: Sanders Kaufman | last post by:
I'm wondering if I'm doing this right, as far as using another class object as a PHP class property. class my_baseclass { var $Database; var $ErrorMessage; var $TableName; var $RecordSet;...
2
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've added some ICO Images to some buttons on my forms. I added them by selecting an Image via the "Select Resource" window. Anyway, all of my images are working just fine, I am getting a WARNING...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.