Login failed for user
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.
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
1 Posted by Imran Rashid on 28 Apr, 2011 01:03 PM
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.
Support Staff 2 Posted by friism on 28 Apr, 2011 05:25 PM
Have you correctly configured the connectionstring name, as discussed here and described here?
friism closed this discussion on 28 Apr, 2011 05:25 PM.
Imran Rashid re-opened this discussion on 28 Apr, 2011 07:52 PM
3 Posted by Imran Rashid on 28 Apr, 2011 07:52 PM
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.
Support Staff 4 Posted by friism on 28 Apr, 2011 08:38 PM
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?
friism closed this discussion on 28 Apr, 2011 08:38 PM.
Imran Rashid re-opened this discussion on 28 Apr, 2011 08:53 PM
5 Posted by Imran Rashid on 28 Apr, 2011 08:53 PM
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.
Support Staff 6 Posted by friism on 28 Apr, 2011 09:13 PM
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.
friism closed this discussion on 28 Apr, 2011 09:13 PM.
Imran Rashid re-opened this discussion on 28 Apr, 2011 09:25 PM
7 Posted by Imran Rashid on 28 Apr, 2011 09:25 PM
That did it. I couldn't have guessed it by myself. Thanks a lot.
friism closed this discussion on 28 Apr, 2011 09:26 PM.