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: 1/30/2005 7:04:49 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 59 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
griff303
Asp.Net User
web.config not allowing me..1/30/2005 7:04:49 PM

0/0

I have set up my web.config file to except a redirect to another page within the root and it works just fine. Now I have added another page for a password forget and it's not allowing me. I have added another location variable to allow it, but it doesn't seem to like it. Any clue??


<location path="epass.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<customErrors mode="Off"/>
</system.web>
</location>

- km

______________________________________

"always here and always forever"
ranganh
Asp.Net User
Re: web.config not allowing me..1/31/2005 7:56:06 AM

0/0



Hi,

Can you show how you have set up the config file for redirection. Your location path tag for password is fine. Kindly provide the tags how you have authorized the other pages so that we can check out whats going wrong.

thanks.
regards,
Harish

http://geekswithblogs.net/ranganh
griff303
Asp.Net User
Re: web.config not allowing me..1/31/2005 1:44:28 PM

0/0

All I am doing is adding another tag just like the one I stated in the the post. I just changed the name of the file and its right below the epass.aspx file location tag.
- km

______________________________________

"always here and always forever"
ranganh
Asp.Net User
Re: web.config not allowing me..2/1/2005 6:16:07 AM

0/0



Hi,

Then it should restrict only that folder and allow all the other folders. I guess you have given the authorization as deny users="?" globally in the web.config file's authentication settings.

Please provide ur web.config so that I can make out. You can mask or hide the sensitive data, if you worry about disclosing them.

thanks.
regards,
Harish

http://geekswithblogs.net/ranganh
griff303
Asp.Net User
Re: web.config not allowing me..2/1/2005 7:20:40 PM

0/0

Here is the code.... All I did was add another non-restrictive location tag to it and it's not allowing... Any suggestion??



<configuration>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXkmDEMO" loginUrl="login.aspx" protection="All" timeout="15">
</forms>
</authentication>
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>
<customErrors mode="Off"/>
</system.web>
<location path="registration.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<customErrors mode="Off"/>
</system.web>
</location>
<location path="epass.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<customErrors mode="Off"/>
</system.web>
</location>
</configuration>




- km

______________________________________

"always here and always forever"
ranganh
Asp.Net User
Re: web.config not allowing me..2/2/2005 5:42:06 AM

0/0


Hi,

There are 2 corrections required in your web.config.

First thing, in the authorization settings, you have specified both

<allow users="*" />
<deny users="?" />

Remove the first one since it will allow all the users. Deny users=? means you are denying access to anonymous users. allow users=* - you allow all users irrespective of whether they are logged in or not to view the page. You should choose which one you want to implement and remove the other tag accordingly.

Secondly, you have specified custom errors in each and every location path tag. Remove that. Its enough if you specify for once for a config file.

Honestly speaking, i tried copying your config file and it allowed me for all the pages including the pages you have specified because of the allow users=* you have put before the deny users=? So I wonder how it doesnt allow you to the epass.aspx page and registration.aspx pages.

One thing you need to confirm is that, the registration.aspx and the epass.aspx exist in the same folder where you have this config file.

Write back if you still face issues.

Thanks.
regards,
Harish

http://geekswithblogs.net/ranganh
griff303
Asp.Net User
Re: web.config not allowing me..2/2/2005 3:07:36 PM

0/0

This is why I wish I had my own server. I go through a host and even with removing the allow="*" that doesn't allow it. As I said befor it will allow me to go to the registration.aspx page, but not the epass.apsx page. They are both in the same folder too. Any suggestions??
- km

______________________________________

"always here and always forever"
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
How to Cheat at Managing Information Security Authors: Mark Osborne, Pages: 315, Published: 2006
Personal Firewalls for Administrators and Remote Users Authors: Lisa Yeo, Pages: 240, Published: 2003
Pro Ajax and the .NET 2.0 Platform Authors: Daniel Woolston, Pages: 463, Published: 2006
Web Caching Authors: Duane Wessels, Pages: 300, Published: 2001
Professional PHP5 Authors: Ed Lecky-Thompson, Steven D. Nowicki, Heow Eide-Goodman, Alec Cove, Pages: 639, Published: 2004
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Building Web Applications with UML Authors: Jim Conallen, Pages: 468, Published: 2002
Sharepoint 2007: The Definitive Guide Authors: James Pyles, Christopher M. Buechler, Bob Fox, Murray Gordon, Michael Lotter, Jason Medero, Pages: 794, Published: 2007

Web:
How to access web.config deny and allow users tag values? - .NET C# I wanna access the deny and allow tag values and authenticate the users. Pl. let me the piece of code to work ...
I am trying to get rid of security in some folders. but the web ... Re: I am trying to get rid of security in some folders. but the web config utility is not allowing me to do it. ...
authentication mode in Web.config confuses me.... [Archive] - VBForums I've make a workable setting, but not sure if it is really ok. As I go through more about web.config, I get confused, may I list the config ...
Web site not allowing me to log in Keywords: Web site not allowing me to log in ..... I tried changing the web. config file (per the following) but that didn't help. ...
Removing web.config entries from SharePoint using ... Mar 20, 2007 ... Not only does it allow the entry to be removed when it is removed ... Vincent Rothwell, I am trying to add and remove web.config entry from ...
TheMSsForum.com >> Asp >> Web.config not recognized in root ... Please, let me know if anybody have done things. Thanks a lot! Pravin Tag: Web. config not recognized in root directory Tag: 388289 ...
[all variants] apache will not allow me to change my web root ... [all variants] apache will not allow me to change my web root folder General ... The config looks OK to me. Did you give access for the user ...
MSDN Windows Live ID: Development Windows Live does not allow ... Windows Live does not allow information to be shared with this type of request. ... You need to check that the values in web.config match those at ...
does NOT work ??? does NOT work ??? Hi, I can't make to work in web.config ... but changing web.config as follows gives me an "Access Denied" ...
Web.config - Is it possible to have alias path to physical path ... Sep 16, 2008 ... I'm hoping that having a script in web.config would allow me to have alias ... out how to do that cuz I'm not too familiar with web.config. ...

Videos:
Lec 11 | MIT 3.091 Introduction to Solid State Chemistry The Shapes of Molecules, Electron Domain Theory, Secondary Bonding View the complete course at: http://ocw.mit.edu/3-091F04 License: Creative Commo...




Search This Site:










flash hides solpartmenu

upgrade from dnn 2.1.2 to dnn 3.0.13 problem

error on asp.net checkout page

looking for a nice links module

dnn 2.0 installation guide.

customize help for module

difference between personalization and cookies or sessions

problem adding multiple controls to placeholder dynamically

having trouble deploying my web project

programming server certificates

track or ping nextel mobile phone

how do you use the security?

most optimized settings for dnn

can/how restrict edit access to a module to a superuser?

will someone look over my xml please?

how to set a fixed size for a content place holder?

how to submit a form

using rendercontrol to capture output from a user control

web parts & querystrings

forms authentication - working for aspx but not for html

reinstall of asp.net after reinstall of iis?

blinking container

need help with resource files

sodablue newsletter module problem

this forum has reached 25k threads & 1000 pages

invalid value for key 'attachdbfilename'

alias

regarding calendar control

using hidden fields

confirm box when closing the window

 
All Times Are GMT