Click here to Skip to main content
15,887,676 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Introduction to ASP.NET web application with SQL db Pin
Eddy Vluggen8-Sep-10 0:52
professionalEddy Vluggen8-Sep-10 0:52 
Questionthe query has been canceled because the estimated cost of this query (569) exceeds the configured threshold of 300 Pin
narithchap7-Sep-10 17:48
narithchap7-Sep-10 17:48 
AnswerRethink your algorithm Pin
David Mujica8-Sep-10 3:52
David Mujica8-Sep-10 3:52 
GeneralRe: Rethink your algorithm Pin
narithchap8-Sep-10 6:11
narithchap8-Sep-10 6:11 
QuestionBasic Question Pin
future38397-Sep-10 14:09
future38397-Sep-10 14:09 
AnswerBasic Answer Pin
Not Active7-Sep-10 14:48
mentorNot Active7-Sep-10 14:48 
GeneralRe: Basic Assistance Pin
Luc Pattyn7-Sep-10 15:41
sitebuilderLuc Pattyn7-Sep-10 15:41 
QuestionForm Authentication not authenticating Pin
Gregory Gadow7-Sep-10 10:51
Gregory Gadow7-Sep-10 10:51 
I made a copy of our company website to a new server, planning to create a test environment. Both servers run IIS 6, and both are configured the same (except for where the configuration gives a server name.) All folders have the same permissions.

I cannot get the user authenticated.

As a last resort, I have this on a test login page:
VB
Protected Sub LoginButton_Click(ByVal sender as Object, ByVal e as EventArgs)
    If Membership.ValidateUser(MyUser, MyPassword) Then
        FormsAuthentication.SetAuthCookie(MyUser, False)
        Response.Redirect("Login2.aspx")
    Else
        Feedback.Text="User not validated"
    End If
End Sub

The second page has this code:
VB
Protected Sub Page_PreRender(ByVal sender as Object, ByVal e as EventArgs)
    If User.Identity.IsAuthenticated Then
        Feedback.Text = "User was authenticated"
    Else
        If User.Identity.Name = "" Then
            Feedback.Text = "No user found"
        Else
            Feedback.Text = "Not authenticated: " + User.Identity.Name
        End If
    End If
End Sub

When I run this on the live server, it acts as expected: clicking the button transfers to Login2.aspx, and the literal on the page shows User was authenticated. Running this on the test server will transfer the page (meaning that the user is being validated) but show No user found, meaning that the user was not authenticated and there was no valid identity.

Any suggestions on how to fix this problem? I would rather not be mucking around with the live website that brands my company.
AnswerRe: Form Authentication not authenticating Pin
Not Active7-Sep-10 13:20
mentorNot Active7-Sep-10 13:20 
GeneralRe: Form Authentication not authenticating Pin
Gregory Gadow8-Sep-10 6:03
Gregory Gadow8-Sep-10 6:03 
Questiongrid view item selection Pin
Dhyanga7-Sep-10 4:24
Dhyanga7-Sep-10 4:24 
AnswerRe: grid view item selection Pin
Abhijit Jana7-Sep-10 6:02
professionalAbhijit Jana7-Sep-10 6:02 
GeneralRe: grid view item selection Pin
Dhyanga7-Sep-10 6:07
Dhyanga7-Sep-10 6:07 
GeneralRe: grid view item selection Pin
Dhyanga7-Sep-10 6:11
Dhyanga7-Sep-10 6:11 
AnswerRe: grid view item selection Pin
Brij7-Sep-10 8:21
mentorBrij7-Sep-10 8:21 
GeneralRe: grid view item selection Pin
Dhyanga7-Sep-10 9:27
Dhyanga7-Sep-10 9:27 
QuestionInvoking Java webservice in .net application Pin
NarVish7-Sep-10 2:50
NarVish7-Sep-10 2:50 
AnswerRe: Invoking Java webservice in .net application Pin
Not Active7-Sep-10 3:20
mentorNot Active7-Sep-10 3:20 
GeneralRe: Invoking Java webservice in .net application Pin
NarVish7-Sep-10 3:48
NarVish7-Sep-10 3:48 
Questionhex string comparison Pin
meenu s7-Sep-10 1:52
meenu s7-Sep-10 1:52 
AnswerRe: hex string comparison Pin
Luc Pattyn7-Sep-10 15:54
sitebuilderLuc Pattyn7-Sep-10 15:54 
Questionsave dialog box problem using vb script Pin
raj15767-Sep-10 1:01
raj15767-Sep-10 1:01 
AnswerRe: save dialog box problem using vb script Pin
Not Active7-Sep-10 2:04
mentorNot Active7-Sep-10 2:04 
AnswerRe: save dialog box problem using vb script Pin
scottgp7-Sep-10 5:54
professionalscottgp7-Sep-10 5:54 
Questionurl mapping Pin
Ahamed Azeem6-Sep-10 22:32
Ahamed Azeem6-Sep-10 22:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.