Logon failed for user ". but only for membership tables in same database that other request work




What am I missing? Computer A is windows xp sp2 with visual studio 2005.
Computer B is Server2003 with SQLServer2005.

Computer A: local website directory security configured for anonymous access
using a local user computer_A\username and password. The password is NOT
managed by iIIS.

Computer B: SQLServer2005 allows local and remote connections, sql server
and windows authentication. Local user computer_B\username and password is
defined.

User computer_B\username is defined in the sql server security logins with
login properties allowing access to database mydb. The default scheama
db_owner. The database (mydb) properties/permissions/effective permissions
are Authenticate, connect, delete,execute,insert,select and update.

The webconfig file has a connection string defined as:Name=LocalSqlServer
Connection String=Data Source=server.domain-name,1433;Initial
Catalog=mydb;Integrated Security=True;. The webconfig file contains <remove
name="LocalSqlServer" and then an <add name="LocalSqlServer" with the above
information. The webconfig file also has <identity impersonate="true" /> and
<authentication mode="Forms">
<forms name=".ASPXFORMSAUTH" loginUrl="login.aspx"
protection="Validation"/>
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>

My login page manually reads a table called usrTbl via a stored proceedure
to check for the existance of the username and password presented.(Yes I
know it is in the clear-bad bad me, just bear with me for the problem). It
then formsredirectfromlogin to the original requested page whice is
Default.aspx.

Default.aspx has a gridview defined. The datasource is defined in the page
load event as:

gridview1.datasource = membership.getallusers()

gridview1.databind()

I get an error Login failed for ". User not associated with a trusted
connection

How can that be, the database has been access earlier with the same
connection string. I checked to make sure user computer_B\username can log
on to computer B.

Please help me to understand a solution to this


.



Relevant Pages

  • RE: Password never set - locked out of Windows XP Home
    ... Ran fixboot last night, and although the system said it had fixed the boot ... I am still stuck in the redundant loop of getting to a pop-up login ... only to not have it shutdown but instead pop back up with the same login box. ... my Windows XP Home system worked great. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Granting permission to a database - need help
    ... Windows authentication, and not use an application login, as then ... Links for SQL Server Books Online: ... USE Driver Access ...
    (microsoft.public.sqlserver.programming)
  • Re: sp_revoke login is not working as expected.
    ... EXEC xp_logininfo 'MyDomain\SomeUserAccount','members' ... Try specifying a group member rather than the group. ... This should list the Windows groups the user can connect with. ... connect with the non-existing login. ...
    (microsoft.public.sqlserver.security)
  • Re: EXEC master..xp_cmdshell Prevention
    ... > I found that my web application did use a connection string in a file ... > stored procedures for every SQL statement would be impractical. ... I have created a new login account ...
    (microsoft.public.sqlserver.security)
  • Re: Windows 98 getting stuck logging into a W2K3 domain.
    ... > workaround I've turned off Windows 98's ability in Client for MS ... > login stating that the domain can not be found, ... > Client for MS networks does the password validation. ...
    (microsoft.public.win2000.general)