473,569 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS forms authentication & Login controls

Hi All,

When using forms authentication with IIS 6.0, I can create a user and log in
the user. But the LoginStatus control states that the user is logged out.

When running the same app using the file system and the Visual Studio web
server the LoginStatus page functions properly by displaying the LoggedIn
template.

Any help is appreciated.

System Settings:
Windows 2003 R2 EE w/ all patches

IIS Settings:
Anonymous & Integrated Security

web.config:

<?xml version="1.0"?>
<configuratio n>
<connectionStri ngs>
<clear/>
<add name="SqlConnec tionString" connectionStrin g="Data
Source=(local); Initial Catalog=aspnet; Integrated Security=True;A pplication
Name=aspnet"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
<system.web>
<trace enabled="true" mostRecent="tru e" />

<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="Login .aspx" protection="All "
timeout="30" path="/" requireSSL="fal se" slidingExpirati on="true">
<credentials passwordFormat= "SHA1" />
</forms>
</authentication>

<compilation debug="true" defaultLanguage ="C#">
<assemblies>
<add assembly="Syste m.Management, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Data.OracleCl ient, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Configuration .Install, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.DirectoryServ ices, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Drawing.Desig n, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Transactions, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Micro soft.Build.Task s, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Messaging, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Syste m.Runtime.Remot ing, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9" />
<add assembly="Micro soft.Build.Util ities, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A" />
<add assembly="Micro soft.Build.Fram ework, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= B03F5F7F11D50A3 A" />
</assemblies>
</compilation>
<membership defaultProvider ="SqlMembership Provider"
userIsOnlineTim eWindow="15">
<providers>
<clear />
<add name="SqlMember shipProvider"
type="System.We b.Security.SqlM embershipProvid er"
connectionStrin gName="SqlConne ctionString" applicationName ="aspnet"
enablePasswordR etrieval="false " enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e" requiresUniqueE mail="true"
passwordFormat= "Hashed" minRequiredPass wordLength="4"
minRequiredNona lphanumericChar acters="0" maxInvalidPassw ordAttempts="5"
passwordAttempt Window="10" />
</providers>
</membership>
<roleManager defaultProvider ="SqlRoleProvid er" enabled="true"
cacheRolesInCoo kie="true" cookieName=".AS PROLES" cookieTimeout=" 30"
cookiePath="/" cookieRequireSS L="true" cookieSlidingEx piration="true"
cookieProtectio n="All">
<providers>
<clear />
<add name="SqlRolePr ovider" type="System.We b.Security.SqlR oleProvider"
connectionStrin gName="SqlConne ctionString" applicationName ="aspnet" />
</providers>
</roleManager>
<profile defaultProvider ="SqlProfilePro vider">
<providers>
<clear />
<add name="SqlProfil eProvider"
type="System.We b.Profile.SqlPr ofileProvider"
connectionStrin gName="SqlConne ctionString" applicationName ="aspnet" />
</providers>
<properties>
<add name="FirstName " />
<add name="LastName" />
<add name="Address" />
<add name="City" />
<add name="StateCode " />
<add name="ZipCode" />
<add name="Gender" />
<add name="Age" type="System.In t32" />
</properties>
</profile>
</system.web>
</configuration>


Jul 18 '06 #1
0 2010

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4806
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and...
11
3548
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get any requested page to automatically go to the Login.aspx page, AND, the ReturnURL querystring is correct in the address bar, but no matter what, I...
3
4849
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be protected by forms authentication. When I create forms authentication at root level it works but when I move my code up to the subfolder I get this...
1
2083
by: Martin | last post by:
Hi, After I gave up on tracking user sessions through the session object (Session_OnEnd is still not triggered by Abandon() even with mode=InProc and me manipulating session variables; in a new test project it is only triggered the first time, it really sucks pretty bad) I started looking at alternatives and I found FormsAuthentication. I...
2
3276
by: Tomk | last post by:
I'm using forms authentication in an ASP.NET application. If I am on a page that requires authentication and my session timesout I am returned to the login page. Isn't it supposed to take me back to the page where the timeout happened after I login?
0
4208
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com....
0
1520
by: Chris Mohan | last post by:
Hi, I've configured a web app to use windows authentication and also set up two separate subdirectories to use forms authentication. It appears to work fine but I have never seen a sample that demonstrates both in the same web.config and I don't like assuming i've done this correctly and securely. Please take a look at the following from my...
4
2486
by: Lewis Edward Moten III | last post by:
I have a file that users can download through a web page protected by forms authentication: Download.aspx?ID=45 and within that file ... FileInfo fileToDownload = new FileInfo(fileName);
2
1468
by: Marty | last post by:
Something strange is happening on my web site since my hosting provider upgraded to Server 2003 a few weeks ago. I use forms authentication in my asp.net application, with essentially the following c# code-behind on my login page: If (FormsAuthentication.Authenticate(UserName.Text, UserPass.Text))...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.