Dean, I do have it between the <configuration> tags. I took this code and replaced my preious <authorization> code actually.
-------------- Original message -------------- From: "Dean Fiala" <[EMAIL PROTECTED]> You put it the wrong place in the web.config file. It needs to be a child of <configuration>. On 4/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Dean, > > I tried this but I get a bunch of errors on each web page when I try yo > run my app. Here is the error: > > Error 34 C:\Documents and Settings\ABC\My Documents\Visual Studio > 2005\WebSites\Stats\GameHeader.aspx: ASP.NET runtime error: <location> > sections are allowed only within <configuration> sections. (C:\Documents and > Settings\ABC\My Documents\Visual Studio 2005\WebSites\Stats\web.config line > 45) C:\Documents and Settings\ABC\My Documents\Visual Studio > 2005\WebSites\Stats\GameHeader.aspx 1 1 C:\...\Stats\ > > > > > > -------------- Original message -------------- > From: "Dean Fiala" <[EMAIL PROTECTED]> > > easy way is to add section to your web.config that tell your app to allow > anonymous users... > > <location path="MyOpenToAllPage.aspx"> > <system.web> > <authorization> > <allow users="?"/> > <!-- Allow all users --> > </authorization> > </system.web> > </location> > > On 4/26/07, [EMAIL PROTECTED] <rherrmann05%40comcast.net> < > [EMAIL PROTECTED] <rherrmann05%40comcast.net>> wrote: > > > > Hi all, > > > > I have an application that requires a user to log in every time. I use > > forms authentication. This all works fine. But now I want my initial url > to > > display a web page that does not require logging into. So non-registered > > users can callup this page. I would then put a hyperlink on this page to > Log > > In. This typical of many sites. > > > > My question is what is the best way to do this? Not sure i f I should > put > > this new page in my current ASP.Net 2.0 web site project or creat a new > > project. My web.config has the XML tags that requires forms > > authentication. So how can I make my new page bypass this? I hope this > makes > > sense! I just would like to have this structured the best possible way. > > > > Thanks, > > Bob > > > > [Non-text portions of this message have been removed] > > > > > > > > -- > Dean Fiala > Very Practical Software, Inc > Now with Blogging... > http://www.vpsw.com/blogbaby > Microsoft MVP > > [Non-text portions of this message have been removed] > > > > -- Dean Fiala Very Practical Software, Inc Now with Blogging... http://www.vpsw.com/blogbaby Microsoft MVP [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

