473,657 Members | 2,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Login failed for user '(null)'. Reason: Not associated with a trus

boy
I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.

"Login failed for user '(null)'. Reason: Not associated with a trusted
connection"

The web application is grant to a group only in web.config
<authorizatio n>
<allow roles="Domain\A Group" />
<deny users="*" />
</authorization>

I have two 2 accounts, userA and userB, which belong to the same group
"Domain\AGroup" . userA can access the web application successfully, whereas
userB cannot and prompted the above error.

Do all you have encountered the same problem?

Thanks!
Nov 19 '05 #1
14 1710
Is the database on the same machine?
Are you using impersonation <identity impersonate="tr ue"/> ?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 02:32:14 -0700, boy
<bo*@discussion s.microsoft.com > wrote:
I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.

"Login failed for user '(null)'. Reason: Not associated with a trusted
connection"

The web application is grant to a group only in web.config
<authorizatio n>
<allow roles="Domain\A Group" />
<deny users="*" />
</authorization>

I have two 2 accounts, userA and userB, which belong to the same group
"Domain\AGroup ". userA can access the web application successfully, whereas
userB cannot and prompted the above error.

Do all you have encountered the same problem?

Thanks!


Nov 19 '05 #2
boy
yes, i used impersonation <identity impersonate="tr ue"/> in the web.config.
if i didn't, all accounts, userA and userB should failed to connect to
database.
however, acount, userA can access succesfully!

the database is installed on another machine from the web application.

"Scott Allen" wrote:
Is the database on the same machine?
Are you using impersonation <identity impersonate="tr ue"/> ?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 02:32:14 -0700, boy
<bo*@discussion s.microsoft.com > wrote:
I got the following error message when I access the web application, in which
the web application use SPPI to connect to database.

"Login failed for user '(null)'. Reason: Not associated with a trusted
connection"

The web application is grant to a group only in web.config
<authorizatio n>
<allow roles="Domain\A Group" />
<deny users="*" />
</authorization>

I have two 2 accounts, userA and userB, which belong to the same group
"Domain\AGroup ". userA can access the web application successfully, whereas
userB cannot and prompted the above error.

Do all you have encountered the same problem?

Thanks!


Nov 19 '05 #3
Boy:)
U are saying User! can log in successfully but UserB can't!
Thats wierd.
But do they both have the ASPNET account?
Try adding the 2 users to the ASPNET acct..
Hope this helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #4
boy
Um.
Both UserA and UserB can pass the IIS authentication. After authentication,
their identities were impersonated to access database. However, only UserA
can access db succesffully.

"Patrick Olurotimi Ige" wrote:
Boy:)
U are saying User! can log in successfully but UserB can't!
Thats wierd.
But do they both have the ASPNET account?
Try adding the 2 users to the ASPNET acct..
Hope this helps
Patrick

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #5
Can UserB access the DB now?


*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #6
boy
The following result is the result i got at the very beginning, event though
i haven't added them to the ASPNET account.
-- Um.
-- Both UserA and UserB can pass the IIS authentication. After
authentication,
-- their identities were impersonated to access database. However, only UserA
-- can access db succesffully.
Your suggested method is used to allow both users to pass the
authentication, am i right? However, my problem is...both users can pass the
NT/IIS authentication.

"Patrick Olurotimi Ige" wrote:
Can UserB access the DB now?


*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #7
If you use Query Analyzer Can both users login to the Database?
Try adding the users to ASPNET account?
Are u in a DOMAIN environment?
And how are u connecting to the Database? Are u using Windows
Authentication?
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #8
My suggestion would be to launch SQL Profiler and see what accounts
the database server is actually seeing when the users try to connect.
SQL Profiler will allow you to watch login/logout events.
Alternatively you could use the SQL audit log in enterprise manager.

The reason I say you should see what accounts are incoming is that
impersonation doesn't work if there is a second hop involved across
the network. If UserA is actually logged into the web server and
running IE then impersonation works, because UserA's credentials only
make one hop (from the web server to the database server). If UserB is
on a third machine, then UserB's credentials can hop from the client
machine to the web server, but can't make a second hop from the web
server to the database server.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 22:26:02 -0700, boy
<bo*@discussion s.microsoft.com > wrote:
The following result is the result i got at the very beginning, event though
i haven't added them to the ASPNET account.
-- Um.
-- Both UserA and UserB can pass the IIS authentication. After
authentication ,
-- their identities were impersonated to access database. However, only UserA
-- can access db succesffully.
Your suggested method is used to allow both users to pass the
authentication , am i right? However, my problem is...both users can pass the
NT/IIS authentication.

"Patrick Olurotimi Ige" wrote:
Can UserB access the DB now?


*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #9
boy
The situation is the same for all users.
User A & B--> Web Server (impersonation) --> database.

I found from the event log(event viewer) of web server that both user can
successfully login the web server. i.e. userB can't make a second hop from
the web
server to the database server, but userA....

what's going on...!?!?
I did another testing.....I migrated the web server to another server. Both
userA and userB can access database now. Problem solved.
However, i want to figure out...what's wrong the orginal server's
configuration.. ...

Anyway, thx alot your reply
"Scott Allen" wrote:
My suggestion would be to launch SQL Profiler and see what accounts
the database server is actually seeing when the users try to connect.
SQL Profiler will allow you to watch login/logout events.
Alternatively you could use the SQL audit log in enterprise manager.

The reason I say you should see what accounts are incoming is that
impersonation doesn't work if there is a second hop involved across
the network. If UserA is actually logged into the web server and
running IE then impersonation works, because UserA's credentials only
make one hop (from the web server to the database server). If UserB is
on a third machine, then UserB's credentials can hop from the client
machine to the web server, but can't make a second hop from the web
server to the database server.

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 29 Apr 2005 22:26:02 -0700, boy
<bo*@discussion s.microsoft.com > wrote:
The following result is the result i got at the very beginning, event though
i haven't added them to the ASPNET account.
-- Um.
-- Both UserA and UserB can pass the IIS authentication. After
authentication ,
-- their identities were impersonated to access database. However, only UserA
-- can access db succesffully.
Your suggested method is used to allow both users to pass the
authentication , am i right? However, my problem is...both users can pass the
NT/IIS authentication.

"Patrick Olurotimi Ige" wrote:
Can UserB access the DB now?


*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14623
by: TBone | last post by:
Anyone, I have a user "john" whose machine is part of the "job" domain. He is trying to establish an odbc connection to an MS SQL 2000 server on the "school" domain. He uses Windows authentication to establish the odbc connection however it gives the error "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection." I am guessing that the odbc connection is trying to pass the credentials of job\john...
10
4762
by: DC Gringo | last post by:
Using latest SP Win2k and .NET versions, I have a .NET application running on server1 with a SQL Server database running on server2. I have the Windows user account passwords sync'd for server1\aspnet (installed by .NET Framework and server2\aspnet (created by me--this machine has no .NET Framework on it). The aspnet user on the database server (server2) has access to the database. I still get: Login failed for user '(null)'. Reason:...
1
2716
by: Mark | last post by:
We are using impersonation so that a user on our domain will login into our SQL Server using their own domain login and/or associated domain groups. To do this, we've added: <authentication mode="Windows" /> <identity impersonate="true"/> to our web.config file. In IIS, annonymous access is unchecked, digest authentication is unchecked, basic authentication is unchecked, and Integrated Windows Authentication is checked.
2
2254
by: Frederik | last post by:
Hi, First sorry for my english I'm french. I developped a web app that work good under XPDEVSERVER machine (iis5) and SqlServerDevelopper Edition. I get problem when I moved this app to an other web server (IIS5.0) win2000. Actualy, I only have problem to connect with the Database that she still hosted on the the XPDEVSERVER mahcine . I get this error msg when I ask a aspx page that is connected to the database: Login failed for user...
3
1977
by: Nicola Marchiori | last post by:
Hi I need some help. I am developing a Web App in one PC running IIS. I am trying to connect to to MSDE on another PC, but it's not working. This is the message i got Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.