Login attempt not successful after deploy???

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

ASP.NET 2.0 site...

On my dev maching I can run my login page with no problem. After I sign in
it redirects to the proper secured page.

I deployed the site, with the same database. I can't loging using the EXACT
SAME login. "Your login attempt was not successful. Please try again."

The ASPNETDB.MDF should be the exact same one.

Any ideas? Thanks...
 
ok,

first, wrap your login code in a try block and then print out the
exception details. This will help to show you what error is occuring,
it seems the "login attempt was not successful" is a generic message
that you may have put in.

second, verify the asp.net process identity has access to your server
where the logins are held (i am assuming sql server since it is an mdf
file) so if your aspnet process is running as the local user on the
webserver, this user will not have access to your sql server. If you
are connecting to the sql server using integrated security, then this
will cause a problem. you can always create a user in SQL server, and
only allow access to that one database, then change your connection
string in your app, to connect to sql as that user

While you were running it on your machine, you were probably running as
a network user which has access to the sql server.

if you need more help, please post the full exception details as to why
the error occured, that will help alot.

dkode
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top