Click here to Skip to main content
       

ASP.NET

 
QuestionRe: Execute javascript before page_Load Pinmemberjojoba201110-Nov-12 21:04 
AnswerRe: Execute javascript before page_Load Pinmemberxut244714-Nov-12 21:20 
AnswerRe: Execute javascript before page_Load Pinmemberjkirkerx10-Nov-12 21:12 
QuestionRe: Execute javascript before page_Load Pinmemberjojoba201110-Nov-12 21:21 
AnswerRe: Execute javascript before page_Load Pinmemberjkirkerx11-Nov-12 13:08 
QuestionRe: Execute javascript before page_Load Pinmemberjojoba201111-Nov-12 18:24 
AnswerRe: Execute javascript before page_Load Pinmemberjkirkerx11-Nov-12 19:28 
QuestionLogin control doesn authenticate user after closing/changing database Pinmemberpier198910-Nov-12 11:02 
Hello guys,
 
I have created a web application, where i provide to users to login and log out, register, etc.
 
I have two databases (i only will use one of them at the end, but now i use them both just to test my application. I use One each time i run the app). I am using the Membership provider on both of those databases. I the Web.config file i point the app to use one of the two databases, by using this connection string:
 
<connectionStrings>
    <clear/>
    <add name="MyLocalSqlServer" connectionString="Data Source=THESAINT\SQLEXPRESS;Initial Catalog=UserAuthentication;Integrated Security=SSPI;"/>
  </connectionStrings>
 
I have two problems i can't seem to figure out what is going on and why they happen. I have searched a lot , but didn't any post with similar problem.
 
I can successfully register and after login the registered user. The problem appears in this two scenarios:
 
1st. When i change the database name in the connection string, put the second database, run the application, and after put again the first database in the connection string and run again the application.
 
2nd. When i close the SQL Server Express 2008 R2 and then start it again.
 
Having done those scenarios above, if i try after to login with a user that is registered in any of the two databases, i keep getting message that the password or username is not correct(that is, the error message of the ASP.NET Login control).
 
But if i want to register a new user, i still can. I only cannot log in .
 
It seems like the application doesn validate the credentials when logging in.
 
Anyone had a similar problem or has an idea of what might be going here ??
I am really frustrated at this point ! I've searched a lot but nothing !
 
Thank you guys !
AnswerRe: Login control doesn authenticate user after closing/changing database Pinmemberjkirkerx10-Nov-12 21:04 
GeneralRe: Login control doesn authenticate user after closing/changing database Pinmemberpier198910-Nov-12 23:11 
GeneralRe: Login control doesn authenticate user after closing/changing database Pinmemberjkirkerx11-Nov-12 12:32 
GeneralRe: Login control doesn authenticate user after closing/changing database Pinmemberthes@int13-Nov-12 3:14 
GeneralRe: Login control doesn authenticate user after closing/changing database Pinmemberjkirkerx13-Nov-12 7:57 
QuestionIt takes too long to execute a query in aspx page PinmemberAbdul Rahman Hamidy9-Nov-12 21:10 
AnswerRe: It takes too long to execute a query in aspx page Pinmemberjkirkerx10-Nov-12 20:58 
GeneralRe: It takes too long to execute a query in aspx page PinmemberDavid Mujica13-Nov-12 4:53 
QuestionProblem with MapPageRoute Pinmemberjrahma9-Nov-12 9:50 
AnswerRe: Problem with MapPageRoute PinmemberMarcus Kramer9-Nov-12 10:46 
GeneralRe: Problem with MapPageRoute Pinmemberjrahma9-Nov-12 10:50 
Question{36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80010001 Call was rejected by callee. PinmemberMember 95859819-Nov-12 0:55 
AnswerRe: {36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80010001 Call was rejected by callee. Pinmemberjkirkerx10-Nov-12 21:09 
QuestionHi friends i want to create a web application PinmemberVinothData9-Nov-12 0:52 
Questionlarger file uploading issue Pinmembersilentspeaker8-Nov-12 4:17 
QuestionUnable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pinmembersilentspeaker8-Nov-12 2:55 
AnswerRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' PinmemberRichard Deeming8-Nov-12 3:26 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 24 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid