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: 11/11/2007 3:06:20 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
thukralz
Asp.Net User
Multiple Web.Config files to have login and different parts?11/11/2007 3:06:20 AM

0/0

Hello Everyone,

 I have one main web.config file and then I added another in a folder say secure. As anything within that folder I need it to be password protected.

<?xml version="1.0"?>

<configuration>

<system.web><authentication mode="Forms">

<forms name=".TEST" loginUrl="default.aspx"

protection="All" path="/" timeout="30" />

</authentication>

<authorization>

<deny users ="?" />

<allow users = "*" />

</authorization>

</system.web>

 

</configuration>

 This is the error I get :

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.

Can anyone please let me know how to fix this ?

MaineOne
Asp.Net User
Re: Multiple Web.Config files to have login and different parts?11/11/2007 12:35:39 PM

0/0

 You need to set up the new folder as an application folder. If local I believe you do this in ControlPanel_AdministrativeTools_Microsoft.NET Framework 2.0.

If on a hosted site there should be a way to set it in the Account management site.


Support@aspsksolutions.com

thukralz
Asp.Net User
Re: Multiple Web.Config files to have login and different parts?11/12/2007 6:08:30 AM

0/0

What I was doing wrong was everything I was putting in the secondary web.config file.

The authentication part should be in main web.config and authorization part in secondary.

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


Free Download:

Books:
Microsoft SharePoint: Building Office 2003 Solutions Authors: Scot P. Hillier, Pages: 392, Published: 2006
Microsoft Windows Security Fundamentals: For Windows 2003 SP1 and R2 Authors: Jan de Clercq, Guido Grillenmeier, Pages: 803, Published: 2006
Practical Apache Struts 2 Web 2.0 Projects Authors: Ian Roughley, Pages: 338, Published: 2007
Web Security: A Step-by-step Reference Guide Authors: Lincoln D. Stein, Pages: 436, Published: 1998
Product Focused Software Process Improvement: Third International Conference, PROFES 2001, Kaiserslautern, Germany, September 10-13, 2001 : Proceedings Authors: Frank Bomarius, Seija Komi-Sirviö, Pages: 382, Published: 2001
Mastering PHP 4.1: Build Full-Featured Web Applications with the Latetst Version of PHP Authors: Jeremy Allen, Charles Hornberger, Jacek Artymiak, Pages: 709, Published: 2002
Environmental Oceanography: Second Edition Authors: Tom Beer, Pages: 367, Published: 1997
Advances in Web Information Systems Engineering: Wise 2008 International Workshops, Auckland, New Zealand, September 1-4, 2008, Proceedings Authors: Unknown, Pages: 185, Published: 2008
Deploying and Managing Microsoft .NET Web Farms Authors: Barry Bloom, Pages: 720, Published: 2001
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005

Web:
Multiple Web.Config files to have login and different parts? - ASP ... Multiple Web.Config files to have login and different parts? Last post 11-12- 2007 1:08 AM by thukralz. 2 replies. Sort Posts: ...
Web Parts in ASP.NET 2.0 Currently it's set in the config file and although i understand you can add ... For example say if i'm using the web parts for different section of my site ...
Keep your .config clean with external config files Jun 16, 2008 ... for different deployment scenarios we can define multiple external ... Can we have child config files to web.config file like a tree ...
DotNetJunkies :: The #1 .NET Community for Developers The web.config files in subdirectories CAN allow or restrict access, ..... I have found there is no need for multiple login pages any more ...
Gigu’s blog » Blog Archive » ASP.NET and Web.config in DA House May 28, 2008 ... So if you would like different parts of your application be configured in different config files, forget it. So, we have ended up with ...
ASP - .NET Configuration Tutorials Config files) can get a bit unwieldy if lots of different parts of your ... NET Web Services. The remove instruction causes ASP.NET to have amnesia about ...
CodeProject: ASP.NET configuration management: an alternative to ... An alternative and flexible way to manage config settings for multiple web ... Do you need to modify web.config file(except add parts of appSettings), ...
Forms Authentication Tutorial The web.config file typical resides in the application root directory although it is possible to have multiple web.config files. ...
Managing a Site Collection Web Part Gallery There may be Web Parts in the web.config file that have never been in the ... Web Parts to your gallery at once by using the Upload Multiple Files option on ...
Troubleshooting Web Parts and Deployment This allows you to create multiple DWP files, appearing as multiple Web parts, which all use the same fundamental DLL and type but use different properties. ...




Search This Site:










security model for fine-grained access

adding extra membership info

trouble with arraylist and gridview

how to encrypt a file referenced by configsource attribute?

please help = i'm desparate

error using cnijn.smtp-mailer

urgently need help in a simple insertion form

need help in buying visual studio 2005 and vss 2005

problem with headerstyle font-bold="false" being ignored in gridview

items from one menu into another menu

toolbar - how to navigate to other pages?[:s]

adding rel="lightbox" to code

nuke

starter kit - help

portal store upgrade in dnn 3.1

css/asp.net challenge..... i think....

just installed asp.net & it doesn't like me

core phot gallery on dnn 3.1.1

what is a postback event?

host recommendations

set post date

public variables

session help + know any good tutorial sites?

online image conversion

user.identity

free modules, source now available

enforcing users to start from index.aspx

masterpages and usercontrols - object reference not set

site map module

images for commerce kit

 
All Times Are GMT