473,467 Members | 1,559 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Have a web site that is 'secure' but want to have a subdirectory that is not.

UJ
I have a web site that is secure by forms authentication. I've put in
changes to allow a virtual directory to be accessed by everyone but it
doesn't seem to have taken. I always end up being pushed back to my login
page.

I then took out all authentication - made it allow all and I'm still being
forced back to the my login page. Is there anything I need to do to force
the changes to happen?

Also - could somebody check my code to make sure that what I'm doing is
correct? (There is other stuff in there - I just don't bother including it.)
WebServices is a virtual directory off the root of my web site.

<configuration>
<location path="WebServices/ClientSoftware.asmx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

<system.web>
<authentication mode="Forms">
<forms name="Login" loginUrl="/Login.aspx" protection="All"
path="/" timeout="30"></forms>
</authentication>

<authorization>
<allow users="*" />
</authorization>
</system.web>
</configuration>
Nov 20 '06 #1
1 1026
UJ
Never mind. It was my own mistake.

"UJ" <fr**@nowhere.comwrote in message
news:eW**************@TK2MSFTNGP06.phx.gbl...
>I have a web site that is secure by forms authentication. I've put in
changes to allow a virtual directory to be accessed by everyone but it
doesn't seem to have taken. I always end up being pushed back to my login
page.

I then took out all authentication - made it allow all and I'm still being
forced back to the my login page. Is there anything I need to do to force
the changes to happen?

Also - could somebody check my code to make sure that what I'm doing is
correct? (There is other stuff in there - I just don't bother including
it.) WebServices is a virtual directory off the root of my web site.

<configuration>
<location path="WebServices/ClientSoftware.asmx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

<system.web>
<authentication mode="Forms">
<forms name="Login" loginUrl="/Login.aspx" protection="All"
path="/" timeout="30"></forms>
</authentication>

<authorization>
<allow users="*" />
</authorization>
</system.web>
</configuration>


Nov 20 '06 #2

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

Similar topics

9
by: Fred | last post by:
Hi, I'm sure there are a bunch of them, but googling just returned full-fledged CMS that require a DBMS and generate dynamic pages. I'd just like a script that would 1. look in a directory...
4
by: Bill | last post by:
Will IIS6.0 recognize a global.asa file located in a subdirectory on the webserver? I'd like a file that will execute whenever a file in the subdirectory is browsed - or, at least it is...
4
by: gary thomson | last post by:
Apologies if this is not quite the correct ng to be asking this question and sorry to be so vague in what I'm asking, but can anyone give me any pointers to implementing a logout button from a...
14
by: Josh | last post by:
I was wondering if anyone could point me in the direction for information to solve the following problems with my site (under development). The URL is...
2
by: RICHARD BROMBERG | last post by:
I am building a password protected ASP web site. (http://www.allscrewedup.org) When you go to this site there is a link in upper left corner (VIP) that takes you to a Logon Screen. The user...
1
by: Corne Grotius | last post by:
Hiya, I'm trying to create a new site on IIS 6.0 using ADSI and C# using the following code: DirectoryEntry W3SVC = new DirectoryEntry("IIS://" + ServerName + "/w3svc", Username, Password,...
0
by: sberk44 | last post by:
Hey, I could really use some help or be directed to the right place for the answer. I am creating a shopping cart and the cart is being stored in a dataset that is being saved in Session. IE...
3
by: Mark Olbert | last post by:
I was able to publish my first ASPNET2 site to my hosting server earlier today without any problems. I gave it the name of subdirectory that would hold the site, entered my ftp password (even though...
2
by: keith | last post by:
I created a subdirectory in a project and added an image to the subdirectory from the project and set its property Build Action=Embedded Resource. Then instanciate a image by Image img=new...
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...
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
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.