"Login failed, user is not associated with a trusted SQL Server connection"

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/28/2008 11:27:10 AM
Gravatar
Total Posts 20

"Login failed, user is not associated with a trusted SQL Server connection"

I'm running locally using IIS 5.1. I'm also using MS SQL 2005 and the database is set up for Mixed Mode authentication. I built the mojoportal-core solution and had no trouble with /setup/default.aspx. It created the tables fine.  Then I clicked the link to go to the home page. Still fine. But when I attempt to log in with admin@admin.com | admin, it gives me the error message "Login failed. User is not associated with a trusted SQL Server connection."

I'm sure I'm overlooking something very simple, but I'm not sure what.

 

2/28/2008 11:46:12 AM
Gravatar
Total Posts 18439

Re: "Login failed, user is not associated with a trusted SQL Server connection"

Hi,

Its strange that the error only happens there and it should not happen in mixed mode. However I don't think the cause or solution to this problem will be found in mojoportal. I think you will have to google for the answer. Maybe this link will help, if not keep googling. Its some kind of sql server configuration issue in my opinion.

If you just now configured it for mixed mode you might try restarting the db or rebooting.

Hope it helps,

Joe

2/28/2008 11:47:07 AM
Gravatar
Total Posts 20

Re: "Login failed, user is not associated with a trusted SQL Server connection"

Oh, wait. Looks like adding Trusted_Connection="yes" to my connection string fixed that. I still can't log in, but at least it's giving me a normal "login failed" message rather than an ASP error.

2/28/2008 12:01:25 PM
Gravatar
Total Posts 18439

Re: "Login failed, user is not associated with a trusted SQL Server connection"

I don't think thats the solution. Thats should not be needed in mixed mode with sql logins. Is the db on a different machine? Is IIS configured for anonymous and integrated windows (as it should be)?

Are you using Sql for the stateserver instead of in process?

Are you using impersonation? (I don;t recommend it)

Are you up to date on service packs for SQL 2005?

These ere the things I would look at and if its not a production machine I would reboot the sql box and see if that solves it.

Hope it helps,

Joe

2/28/2008 12:15:58 PM
Gravatar
Total Posts 20

Re: "Login failed, user is not associated with a trusted SQL Server connection"

I took off the UID/PWD in the connection string and added the trusted connection line.

 

The DB is local. IIS is configured for anon and integrated windows.

I don't know the answer to your next question.

I'm not using impersonation.

All SPs are up-to-date.

And thank you so much for your prompt responses! This is the first portal software of the bajillion I've tried where I'm actually getting responses to my problems.

2/28/2008 12:28:01 PM
Gravatar
Total Posts 18439

Re: "Login failed, user is not associated with a trusted SQL Server connection"

In mixed mode it should work without Trusted_Connection="yes" by using a sql login.

If your sql login was not dbo of the db I would try making him dbo.

With Trusted_Connection="yes" I'm not sure if its connecting to the db as you, the user logged into windows, or the aspnet account or iuser_machinename. I'd have to research it.

In any case if you changed the connection string since running the setup it could possibly be a factor in current issue as the context in which objects are created in the db can affect how they are used. I would try creating a new clean db and run setup again using your new connection string and see if  it works better after that.

Hope it helps,

Joe

2/28/2008 12:43:35 PM
Gravatar
Total Posts 20

Re: "Login failed, user is not associated with a trusted SQL Server connection"

I deleted my web.config and copied another one back in (and made the right changes to the connection string) and it works now. I have another question, but I'll start a new thread for that.

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