Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / August 2003

Tip: Looking for answers? Try searching our database.

Web.config problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Toby Riley - 08 Aug 2003 12:37 GMT
I have a Web application that has at the root level a logon page that work
off forms authentication. Works no problems. However i have a subdirectory
/mobile of which i want to provide a separate logon page and authentication
that overrides the root web application without making it an application in
it own right.

I have tried using another web.config file in the subdirectory but it just
causes an error.

Any suggestions welcome.

Thanks

toby.riley@exmlsystems.com
Michal A. Valasek - 08 Aug 2003 13:08 GMT
| I have a Web application that has at the root level a logon page that work
| off forms authentication. Works no problems. However i have a subdirectory
| /mobile of which i want to provide a separate logon page and authentication
| that overrides the root web application without making it an application in
| it own right.

AFAIK, this is not possible. I am using the following solution: As login
page I am using the mobile version. If request is not made from mobile
device, I'll redirect user to normal login page.

Signature

Michal A. Valasek, Altair Communications, http://www.altaircom.net
Please do not reply to this e-mail, for contact see http://www.rider.cz

Earl Beaman[MS] - 11 Aug 2003 23:24 GMT
Hi Toby,

Michael is correct.  If you want a subfolder to do it's own authentication,
it must be an application.
You can certainly have web.configs in each of the folders, whether it's an
app or not, but there are certain sections that can only be put into an
application, such as authentication.  As you have found out, a web.config
that has one of these sections and is not in an application will cause a
config error.

Michael seems to have a good workaround for this, I encourage you to give
his approach a try.

Thanks,
Earl Beaman
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no
rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.