Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.net Security Problem

Status
Not open for further replies.

thefox149

Technical User
Nov 22, 2004
158
AU
Hi tippers

I have a machine a do my development on (I am new to asp.net). I used the login in control added a users and on successful login I get redirected to the correct page this works fine on my development machine. When I copied ("directly copied all the files from my working folder") to my webserver the login page loads fine however it does not accept the password. I have got it set to authenticate from the web. I accessed the site using localhost....is this the problem (not at home to test) ...i suppose it would be wouldn't it?

My cat's name is sprinkles
-Ralph Wigam
 
What do you mean by "does not accept the password" ? Is there any error-exception thrown? Maybe you have database problems .
 
It states that the password or user name is incorrect in the validation section

My cat's name is sprinkles
-Ralph Wigam
 
It's probably a database issue as TipGiver has said. If you just copied all the files in your project to another machine, then the web.config will be looking for the database specified in there. Bascially, check the membership profiles in the web.config and make sure they are pointing to the DB you want.

Jim
 
Is the account locked? If memory serves, the default login control's behavior is the same for locked accounts as for wrong passwords.

Brian Begy
BugSentry - Automatic error reporting
 
I think there's something else afoot I have taken the security out I can access the records in my dbase but i can't save to it....(sqlserver) the login control creates a sqlserver dabse ....am i forgetting about something here in my deployment. I use

Dim cst As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Data.mdf;Integrated Security=True;User Instance=True"
Dim cnn As SqlConnection = New SqlConnection(cst) to connect to the dbase is there something in my webconfig I am missing?

My cat's name is sprinkles
-Ralph Wigam
 
well for the moment I am not sure I jusr want to know how to write to the database ... is there something in IIS I need to set

My cat's name is sprinkles
-Ralph Wigam
 
How are you trying to "save" to the database? Show the code you are using that you say does not work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top