Login failed

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/25/2011 9:38:49 PM
Gravatar
Total Posts 2

Login failed

nfig.

I've installed mojoPortal, opened it in VS2010, created database, created login, user, runned mojoPortal and got such an error:

 

Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
The system cannot connect to the MSSQL database. Please check your connection string.

System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'mojouser'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at mojoPortal.Data.DBPortal.DatabaseHelperGetConnectionError(String overrideConnectionInfo)

Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.co nfig.

 

 

That's first time i use mojoProject and MSSQL at all.

2/26/2011 7:37:48 AM
Gravatar
Total Posts 18439

Re: Login failed

You need to edit the MSSQLConnectionString setting in Web.config or user.config to make it use your db user and password.

If user.config exists you must edit it there and then type a space in Web.config to make it reload settings.

Hope it helps,

Joe

2/26/2011 11:18:04 AM
Gravatar
Total Posts 2

Re: Login failed

That's what I have:   <add key="MSSQLConnectionString" value="server=localhost\SQLExpress;UID=mojouser;PWD=mojo123;database=dbase" /> in user.config

2/26/2011 11:24:04 AM
Gravatar
Total Posts 18439

Re: Login failed

The error is very clear, login failed for mojouser

make sure you created a sql user (not a windows user) named mojouser, make sure the password is correct, make sure the database name is correct and make sure the user mojouser is added as a dbo on the database.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.