Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Login failed for user

Imran Rashid's Avatar

Imran Rashid

28 Apr, 2011 11:02 AM

Hi there,

I am trying to deploy my first app and I am getting the "Login failed for user " error. Can you take a look and let me know what the problem is? The application URL is http://manup.apphb.com/.

Thanks.

  1. 1 Posted by Imran Rashid on 28 Apr, 2011 01:03 PM

    Imran Rashid's Avatar

    I change the connection string to the one supplied by App Harbor and it started working so it seems that my connection string is not being replaced by AppHarbor. What can I do to make sure that my connection string gets replaced when I push my code to AppHarbor? Connection string name in both the places is exactly the same.

    Thanks.

  2. Support Staff 2 Posted by friism on 28 Apr, 2011 05:25 PM

    friism's Avatar

    Have you correctly configured the connectionstring name, as discussed here and described here?

  3. friism closed this discussion on 28 Apr, 2011 05:25 PM.

  4. Imran Rashid re-opened this discussion on 28 Apr, 2011 07:52 PM

  5. 3 Posted by Imran Rashid on 28 Apr, 2011 07:52 PM

    Imran Rashid's Avatar

    Yes, the above two links point to the same page and it just says to make the connectionstring name on AppHarbor the same as it is in our config file and I have done the same but still, it's not picking it up.

  6. Support Staff 4 Posted by friism on 28 Apr, 2011 08:38 PM

    friism's Avatar

    Sorry, I wanted to link to this discussion: http://support.appharbor.com/discussions/problems/104-connection-st...

    I've just tested the connecstring replacement, and it works on our end. Did you name the connectionstring element correctly?

  7. friism closed this discussion on 28 Apr, 2011 08:38 PM.

  8. Imran Rashid re-opened this discussion on 28 Apr, 2011 08:53 PM

  9. 5 Posted by Imran Rashid on 28 Apr, 2011 08:53 PM

    Imran Rashid's Avatar

    Thanks for the links.

    I have double checked the connection string name and it is exactly the same and I still haven't found any other parameters that need to be set after going through the documentation and discussion.

    You have made it quite simple and after reading the document one feels that connection string will be automatically replace if the connection string is the same but this thing has taken the most time for me. Please take a look at my web.config if you need to and let me know.

    Thanks.

  10. Support Staff 6 Posted by friism on 28 Apr, 2011 09:13 PM

    friism's Avatar

    If I inspect the web.config of the currently deployed application, the "ManupContext" is pointing at an AppHarbor database called db2028. The database associated with the application is called db2031 however.

    The db2031 database was created at 13:22 UTC, sometime after the currently deployed build (created at 12:55). I'm assuming you deleted db2028 and created a new database for the application without redeploying. AppHarbor will currently only replace connectionstrings on deploys. To get the connectionstring for you new database inserted, you will have to trigger a build.

    We're working on changing this, so that configuration files can be modified by AppHarbor while the app is running.

    Let us know if this doesn't resolve you issue.

  11. friism closed this discussion on 28 Apr, 2011 09:13 PM.

  12. Imran Rashid re-opened this discussion on 28 Apr, 2011 09:25 PM

  13. 7 Posted by Imran Rashid on 28 Apr, 2011 09:25 PM

    Imran Rashid's Avatar

    That did it. I couldn't have guessed it by myself. Thanks a lot.

  14. friism closed this discussion on 28 Apr, 2011 09:26 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac