W3SVC and asp.net
- From: "fixitchris via WinServerKB.com" <u28526@uwe>
- Date: Tue, 06 Mar 2007 20:58:47 GMT
I ran into some problems between my test and production web servers.
TEST SERVER:
2003 Server 32bit
Default IIS setup
Default SQL setup
SELFSSL test cert
..net 2 running 32BIT
PRODUCTION SERVER:
2003 Server 64bit
NTFS locked down to prohibit WEBUSERS (IUSR/IWAM)
IIS:
not on system drive
site id is NOT 1
AppPools Enable32BitAppOnWin64 = 1 for UserType SERVER
IUSR and IWAM were placed in a WEBUSERS security group
SQL:
Data is not on system drive
startup as a user account
SERVER service among others disabled.
IPSEC to open only necessary ports.
VeriSign SSL cert
..net 2 running 32BIT
Administrator account renamed to ■
Everything works fine on the test server...
My problem occurs with the LOGINSTAUS asp control on the production server.
When I click >>Logout<< to log out a user, JS _dopostback is called on a page
that invertantely attempts to read a HTTPcontext.current.profile when there
is NONE because the user just logged out!
Value cannot be null.
Parameter name: username
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: username
Source Error:
Line 293: ' 2/5/07: Get email from profile
Line 294: If profile.Email = "" Then
Line 295: MyEmail = Membership.GetUser(profile.UserName).Email
Line 296: Else
Line 297: MyEmail = profile.Email
This gets triggered on the PROD SERVER but the TEST SERVER completely omits
this and when a user logs out the login control takes him back to the login
screen and asks for USER/PW input.
What the heck is going on?
--
Message posted via WinServerKB.com
http://www.winserverkb.com/Uwe/Forums.aspx/iis-security/200703/1
.
- Follow-Ups:
- Re: W3SVC and asp.net
- From: Roger Abell [MVP]
- Re: W3SVC and asp.net
- Prev by Date: Problem with FTP Transfer
- Next by Date: Re: W3SVC and asp.net
- Previous by thread: Problem with FTP Transfer
- Next by thread: Re: W3SVC and asp.net
- Index(es):
Relevant Pages
|