Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# adnanmunir 10/15/2009 10:38 AM
I spend the whole day to figure it out what the problem is but all is in vain.

Here is the exception i'm getting. i'm using SQ L 2005 in MIX Mode. sql and windows authentication. could some one please help me. i'm already too late.

Thanks in Advance

Login failed for user 'web'. Reason: Not associated with a trusted SQL Server connection.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'web'. Reason: Not associated with a trusted SQL Server connection.

Source Error:


Line 54: q.SetCacheable(true);
Line 55: q.SetCacheRegion("Sites");
Line 56: return q.UniqueResult() as SiteAlias;
Line 57: }
Line 58:

Source File: D:\VS2005Projects\Cuyahoga 1.6\Core\DataAccess\SiteStructureDao.cs Line: 56
# martijnb 10/15/2009 12:14 PM
The default connection string in properties.config uses integrated security to connect to the database. The user that is running the web application (in your case, it looks like this user is 'web') should have the appropriate rights (dbowner) on the SQL Server database. Alternatively, you can alter the connection string to enter the SQL server user name and password:
server=YOUR_SERVER;database=YOUR_DATABASE;uid=YOUR_SQLSERVER_USER;pwd=YOUR_SQLSERVER_PWD