Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 26th, 2008, 09:22 PM
Registered User
 
Join Date: Mar 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default IIS problem??

i am doing a login function where the users need to be logged in before they can go into the webpage.. even they keyed in the URL directly, it will redirect them to the login page.. It worked perfectly fine in the VS2005 but when i host it to the IIS, i can directly go into the webpages when i typed the URL.. Do i need to make any changes to the IIS??

edit: I am using MySQL as the database. when i am loggin into the system and i tried keying wrong username and password.. it vaildates.. but when i haven't authicate the users.. it can directly go into other pages..

Some help needed
  #2 (permalink)  
Old March 27th, 2008, 07:39 AM
Authorized User
 
Join Date: Sep 2007
Location: , , Finland.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you using Forms authentication and MySqlMembershipProvider or some custom login stuff? I would suggest you use the former. It works nicely.
  #3 (permalink)  
Old March 31st, 2008, 04:38 AM
Registered User
 
Join Date: Mar 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well.. i used forms authication but it won't work out in the IIS...

and i didn't touch the IIS configuration.. for the SqlConnector, i made the connections in the data sources in the administrative folders.. As for the connectionString i declare it in the class file which resides in the App_code folder...

  #4 (permalink)  
Old April 10th, 2008, 07:56 AM
Authorized User
 
Join Date: Dec 2004
Location: Madurai, Tamil Nadu, India.
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default

check whether the following tags were placed in your web.config... if not so please place it. It will definitely work...

<identity impersonate="true"/>
        <authorization>
            <deny users="?"/>
            <allow users="yourname"/>
        </authorization>
        <authentication>
            <forms name="uname" defaultUrl="Default.aspx" loginUrl="login.aspx" cookieless="UseCookies"/>
        </authentication>

Thanks and Regards,

Senthil Kumar M.


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS problem dinesherandika ASP.NET 1.0 and 1.1 Basics 6 March 12th, 2007 11:43 PM
IIS Problem alyeng2000 Classic ASP Components 4 February 4th, 2006 12:24 PM
IIS Problem? hosefo81 Classic ASP Components 11 May 3rd, 2004 08:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.