<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1546376.aspx</link><pubDate>Wed, 24 Jan 2007 14:06:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1546376</guid><dc:creator>joec0814</dc:creator><author>joec0814</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1546376.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1546376</wfw:commentRss><description>&lt;p&gt;There is a good article with source code on &lt;a href="http://www.aspnetpro.com/"&gt;www.aspnetpro.com&lt;/a&gt;&amp;nbsp;called Build a User Administration Tool by Bipin Joshi&amp;nbsp;which resolves the remote administration problems. I downloaded the code and was impressed with the functionality. I will be adding to my sites, as I have had the same remote admin issues. I'm tempted to post my "slightly altered" code for the community, but I don't want to violate aspnetpro terms, as access to this article is subscription based. Worth looking into.....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Joe&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1546342.aspx</link><pubDate>Wed, 24 Jan 2007 13:45:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1546342</guid><dc:creator>cpt_safety</dc:creator><author>cpt_safety</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1546342.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1546342</wfw:commentRss><description>&lt;p&gt;I know that this forum is not really for complaints, but I've been going insane over this same problem for a week now.&lt;/p&gt;
&lt;p&gt;It's actually helpful to know that there are others ot there.&amp;nbsp; I'll be thinking of you as I'm also re-developing my site...&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1546307.aspx</link><pubDate>Wed, 24 Jan 2007 13:23:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1546307</guid><dc:creator>dkode</dc:creator><author>dkode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1546307.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1546307</wfw:commentRss><description>&lt;p&gt;Just to follow up with the problems I was having,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I completely abandoned the membership features in ASP.NET 2.0 and built my own. Took me all of 3 days to do the registration features, and make all the correct tables.&lt;/p&gt;
&lt;p&gt;After that I built a backend administrator to allow me to manage users on my site.&lt;/p&gt;
&lt;p&gt;I am much more comfortable now with my own code in place so now if something malfunctions, I dont have to drudge through a large number of tables that use uniqueidentifiers and it is much easier to integreate with my existing table structure.&lt;/p&gt;
&lt;p&gt;Perhaps in the future when the membership tools have matured a little, I will try them again, I just dumped so much time into trying to get their controls to work that I gave up.&lt;/p&gt;
&lt;p&gt;Thank you for your comments everyone, I appreciate the help and advice!&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1478470.aspx</link><pubDate>Tue, 28 Nov 2006 05:43:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1478470</guid><dc:creator>arifali</dc:creator><author>arifali</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1478470.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1478470</wfw:commentRss><description>&lt;p&gt;Scott,&lt;/p&gt;
&lt;p&gt;Strangely, although I have been wrestling with this for several days in my spare time, 10 minutes after I made the above post, the problem went away.&lt;/p&gt;
&lt;p&gt;Unfortunately I dont know what changed so I am going to plow ahead slowly and hope to continue to make progress as I add more features to the security of this site.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1339492.aspx</link><pubDate>Wed, 12 Jul 2006 18:08:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1339492</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1339492.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1339492</wfw:commentRss><description>&lt;p&gt;ASP.NET 2.0 provides support for a managing and setting configuration settings using the System.Configuration namespace.&amp;nbsp; These quickstart tutorials discuss how to access and change values:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.asp.net/QuickStart/aspnet/doc/management/default.aspx"&gt;http://www.asp.net/QuickStart/aspnet/doc/management/default.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You could use this to programmatically change settings.&lt;/p&gt;
&lt;p&gt;Note that saving web.config files typically cause an application restart -- so that is one thing to be aware of if you are updating yourself (as long as your app doesn't store things in session state this should be fine).&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1339381.aspx</link><pubDate>Wed, 12 Jul 2006 16:27:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1339381</guid><dc:creator>AWizardInDallas</dc:creator><author>AWizardInDallas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1339381.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1339381</wfw:commentRss><description>&lt;font face="Verdana"&gt;&lt;font size="2"&gt;Thanks, Scott!!&amp;nbsp; I have it working for the subfolder at long last!&amp;nbsp; Okay the last feature I would like to implement is the ability to modify the page permissions remotely rather than having to sit in front of Visual Studio to edit the file.&amp;nbsp; Is that possible?&lt;br /&gt;&lt;br /&gt;Thanks for the Rolla link.&amp;nbsp; I'll look it over and start a new topic if I have questions.&lt;br /&gt;&lt;br /&gt;Thanks Again!&lt;br /&gt;AWizardInDallas&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1338750.aspx</link><pubDate>Wed, 12 Jul 2006 03:56:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1338750</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1338750.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1338750</wfw:commentRss><description>&lt;p&gt;You can absolutely specify a location directive to a file in a sub-directory.&amp;nbsp; Your syntax above is wrong, it should instead be:&lt;/p&gt;
&lt;p&gt;&amp;lt;location path="security/securepage.aspx"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow roles="subscribers"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deny users="*"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;lt;/location&amp;gt;&lt;/p&gt;
&lt;p&gt;Note that you should use forward-slash instead of backslash, and no "~".&lt;/p&gt;
&lt;p&gt;This article: &lt;a href="http://aspnet.4guysfromrolla.com/demos/printPage.aspx?path=/articles/122805-1.aspx"&gt;http://aspnet.4guysfromrolla.com/demos/printPage.aspx?path=/articles/122805-1.aspx&lt;/a&gt;&amp;nbsp;describes how to implement "security trimming" -- which allows you to show/hide nodes within a menu based on the security role of the user.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1338735.aspx</link><pubDate>Wed, 12 Jul 2006 03:32:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1338735</guid><dc:creator>AWizardInDallas</dc:creator><author>AWizardInDallas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1338735.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1338735</wfw:commentRss><description>The root web.config file will not accept this directive, however:&lt;br /&gt;&lt;br /&gt;&amp;lt;location path="~\security\securepage.aspx"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow roles="subscribers"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deny users="*"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;lt;/location&amp;gt;&lt;br /&gt;&lt;br /&gt;Your example will only work if securepage.aspx file in in the root with the web.config file, right?&amp;nbsp; So it doesn't solve the problem.&amp;nbsp; I suspect that I'll have to add a page_load to every single page in my site that redirects if the user doesn't have the proper role for that page.&amp;nbsp; In ASP I would create a security include that does that and have the include at the top of every page.&amp;nbsp; I imagine I'll have to do something simlar.&lt;br /&gt;&lt;br /&gt;I'm also trying to figure out how to hide menu items based on role too.&amp;nbsp; Have not found an example of that either.&lt;br /&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1338729.aspx</link><pubDate>Wed, 12 Jul 2006 03:19:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1338729</guid><dc:creator>AWizardInDallas</dc:creator><author>AWizardInDallas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1338729.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1338729</wfw:commentRss><description>I believe you've missed the point entirely.&amp;nbsp; I have an admin tool built...now.&amp;nbsp; I spent weeks building it.&amp;nbsp; I had to figure out to use aspnet_sqlreg.exe to create the schema in my existing database because Visual Studio otherwise assumed that I would settle for using SQL Server Express.&amp;nbsp; It also decided what my application name would be in web.config, which I had to figure out how to change.&amp;nbsp; I had to figure out how to use and configure all of the login controls.&amp;nbsp; I had to take side trips to learn how to use the GridView and how to write skin files so the pages wouldn't be as&amp;nbsp; hideous as the ones in the SDK.&lt;br /&gt;&lt;br /&gt;I examined the admin tool code in the framework folder and discovered that they're out of date (the code is still using DataGrids rather than the new GridViews).&amp;nbsp; I have also had the built-in admin tool mangle my web.config file half a dozen times.&amp;nbsp; I've read blogs, forums, and culled code from various sources including the SDK.&amp;nbsp; I've Installed and uninstalled four .NET forums as well as Dotnetnuke.&amp;nbsp; I bought two books that were both rip offs.&amp;nbsp; I've read junk for previous versions (i.e. Whidby, 2003, etc.) that no longer apply as well.&amp;nbsp; I've done plenty of&amp;nbsp; searching...the point is I shouldn't have to.&lt;br /&gt;&lt;br /&gt;I learned a lot.&amp;nbsp; I have most of it done.&amp;nbsp; The irony?&amp;nbsp; I still can't secure pages in a subfolder after all these weeks of effort.&amp;nbsp; I haven't spent any time on the actual application code I'd rather have spent the time writing.&amp;nbsp; And, as with most programmers security is probably my least favorite topic.&amp;nbsp; You remember the Microsoft web adds with the guy going to the fridge late at night?&amp;nbsp; Well Visual Studio didn't save me any time and I'm still at it.&amp;nbsp; &lt;br /&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1338721.aspx</link><pubDate>Wed, 12 Jul 2006 03:03:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1338721</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1338721.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1338721</wfw:commentRss><description>&lt;p&gt;Web.config files support the concept of &amp;lt;location&amp;gt; directives that allow you to scope settings to specific files (or folders).&amp;nbsp; So if you want to secure a specific file or set the authorization rules for just one URL, you can use a location directive like this to-do so:&lt;/p&gt;
&lt;p&gt;&amp;lt;location path="securepage.aspx"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authorization&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow roles="subscribers"/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deny users="*"/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/authorization&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/system.web&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/location&amp;gt;&lt;/p&gt;
&lt;p&gt;The above config applies only to the securepage.aspx file, and basically indicates that users within the "subscribers" role have access to it - and everyone not in that role is denied access.&lt;/p&gt;
&lt;p&gt;Let me know if this makes sense and solves what you are trying to-do,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1338710.aspx</link><pubDate>Wed, 12 Jul 2006 02:26:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1338710</guid><dc:creator>AWizardInDallas</dc:creator><author>AWizardInDallas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1338710.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1338710</wfw:commentRss><description>Okay let me address your points constructively...&lt;br /&gt;&lt;br /&gt;1) Easier or not, securing a folder is not what I want.&amp;nbsp; I like to organize things by topic so placing the all code related to security in a single folder and allowing access to only some pages makes more sense to me than having multiple folders.&amp;nbsp; Also see point #2.&lt;br /&gt;&lt;br /&gt;2) I have reviewed the SDK code in depth.&amp;nbsp; I looked at the specifc example entitled "Authorizing Access to a Page with Role Manager."&amp;nbsp; The exact description of what I'd like to accomplish.&amp;nbsp; Have a good look at the code if you would.&amp;nbsp; It secures a folder not a page...clearly a misleading example.&amp;nbsp; Otherwise the SDK has no example of securing a page that I can see.&amp;nbsp; The root web.config will not secure pages in a sub folder.&amp;nbsp; I tried it and also tried setting up a web.config file in the subfolder (which is also undesirable because I don't want to maintain multiple web.config files for each folder I want secured).&lt;br /&gt;&lt;br /&gt;3) Yes, and I can and have done something similar in ASP.&amp;nbsp; I check a session token and redirect to a login page if they don't have access.&amp;nbsp; So what have I gained with ASP.NET if I have to use the same approach?&amp;nbsp; Nothing that I can see.&lt;br /&gt;&lt;br /&gt;So I've still not found an easy way to secure access to singular pages.&lt;br /&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1337635.aspx</link><pubDate>Tue, 11 Jul 2006 07:20:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1337635</guid><dc:creator>ScottGu</dc:creator><author>ScottGu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1337635.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1337635</wfw:commentRss><description>&lt;p&gt;I haven't heard from many people having problems with the Membership/Roles implementations.&amp;nbsp; There are now tens of thousands of sites deployed using them, and I'd definitely recommend going that approach.&lt;/p&gt;
&lt;p&gt;This page has a ton of information regarding ASP.NET 2.0 security resources: &lt;a href="http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2006/02/24/438953.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is a free sample that you can download that implements a remote security management tool for the ASP.NET Membership/Roles system: &lt;a href="http://peterkellner.net/archives/2006/01/09/24"&gt;http://peterkellner.net/archives/2006/01/09/24&lt;/a&gt;&amp;nbsp; The source is fully available, so you can take it and integrate it however you want into your site.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1336931.aspx</link><pubDate>Mon, 10 Jul 2006 15:22:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1336931</guid><dc:creator>rjdudley</dc:creator><author>rjdudley</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1336931.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1336931</wfw:commentRss><description>&lt;p&gt;&amp;gt;I want to be able to restrict access to individual pages?&lt;/p&gt;
&lt;p&gt;There are three ways to do this:&lt;/p&gt;
&lt;p&gt;1) If you have a lot of related pages, such as an administration tool, it's easier to put all the pages in a subfolder and protect the subfolder.&lt;/p&gt;
&lt;p&gt;2) If you want finer control over pages in the same folder, you can protect individual pages in the web.config.&amp;nbsp; You can set access by role or user ID, or both.&amp;nbsp;&amp;nbsp;This example allows only logged-in users to access test.aspx:&lt;/p&gt;
&lt;p&gt;&amp;lt;LOCATION path="test.aspx"&amp;gt;&lt;br /&gt;&amp;lt;SYSTEM.WEB&amp;gt;&lt;br /&gt;&amp;lt;AUTHORIZATION&amp;gt;&lt;br /&gt;&amp;lt;ALLOW users="*" /&amp;gt;&lt;br /&gt;&amp;lt;/AUTHORIZATION&amp;gt;&lt;br /&gt;&amp;lt;/SYSTEM.WEB&amp;gt;&lt;br /&gt;&amp;lt;/LOCATION&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Put these sections in your web.config just before the final &amp;lt;/configuration&amp;gt; tag.&lt;/p&gt;
&lt;p&gt;3a) You can use the User.IsInRole on each individual page, which would be bulky, but effective.&lt;/p&gt;
&lt;p&gt;3b) You could create a base page, which inherits from system.web.page, and add your own authorization routine in the page_onload.&amp;nbsp; Then have every page in your site inherit the base page (rather than system.web.page) and your authorization will be applied to every page.&lt;/p&gt;
&lt;p&gt;For an example, look at &lt;a href="http://www.asp.net/QuickStart/aspnet/doc/security/membership.aspx#progauth"&gt;http://www.asp.net/QuickStart/aspnet/doc/security/membership.aspx#progauth&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1336319.aspx</link><pubDate>Sun, 09 Jul 2006 20:51:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1336319</guid><dc:creator>AWizardInDallas</dc:creator><author>AWizardInDallas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1336319.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1336319</wfw:commentRss><description>I totally agree!&amp;nbsp; I've spent an entire month just building the same functionality from scratch and it wasn't quick and it wasn't easy and it's still not complete, thus the reason I'm trolling through this forum.&amp;nbsp; Also, I would like to point this out:&amp;nbsp; I tried to go to the framework version in my Windows directory and pilfer the code for this functionality.&amp;nbsp; Guess what?&amp;nbsp; It's out of date.&amp;nbsp; It was apparently written for Framework 1.1.&amp;nbsp; The help files read like sterio instructions, the SDK code is crappy and a Google search will show that people all over are having problems with it.&lt;br /&gt;&lt;br /&gt;The problem I'm having?&amp;nbsp; I want to be able to restrict access to individual pages?&amp;nbsp; What advice do I get?&amp;nbsp; Move crap into subfolders and secure the folders.&amp;nbsp; So now my file structure is being dictated to me as well.&amp;nbsp; No, thank you...I refuse.&amp;nbsp; It looks like I'll be using redirects as in ASP.&amp;nbsp; What have I gained?&amp;nbsp; Nothing.&lt;br /&gt;&lt;br /&gt;I like the concepts behind ASP.NET but it's implementation sucks and it's clearly meant to make third party code and component providers rich by providing out-of-the-box solutions that should be in .NET to begin with.&lt;br /&gt;</description></item><item><title>Re: No Membership/Role Remote Configuration?!?!??!!</title><link>http://forums.asp.net/thread/1334217.aspx</link><pubDate>Thu, 06 Jul 2006 17:37:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1334217</guid><dc:creator>dkode</dc:creator><author>dkode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1334217.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1334217</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;actually saw the quality data site and considered purchasing that product, but again...I shouldnt have to be purchasing tools that should already be included in features that microsoft is providing.&lt;/p&gt;
&lt;p&gt;Sorry, I dont mean to be trolling here, but it's just aggravating to go and spend money on something that I shouldnt have to purchase. Even though it is only $60, I am so discouraged, I am going to develop my own registration system from scratch so I don't even have to use any of microsoft's tools to manage my membership user base.&lt;/p&gt;
&lt;p&gt;In addition, after browsing google and other forums, it seems that quite a number of people are having ALOT of problems with the membership/profile/role provider tools that are supplied by microsoft in production websites, so rather then flirt with disaster, I feel more comfortable developing my own system so IF it does break, I at least know where the problem is because it is my code, rather than post on here or google begging for help while my website is going down in flames.&lt;/p&gt;
&lt;p&gt;Thanks for your postings.&lt;/p&gt;
&lt;p&gt;P.S.&lt;br /&gt;If any "ASP.NET Team" users browse this thread, PLEASE make a note that it is absolutley amazing to me that such a large number of people are having problems with these tools, ESPECIALLY remote management like I am stating here, and try to make it a point to include that feature in the next release. PLEASE!! it will make alot of peoples lives SO much easier. If your going to provide these tools, please provide them from beginning to end, and not half way in between.&lt;/p&gt;</description></item></channel></rss>