473,569 Members | 2,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error:Login failed for user ''. The user is not associated with a trusted SQL Server connection.

we´re having problems to put our Website at IIS:
We have achieved it all works using the connectionStrin g with user and
password of the superuser (sa), but with IntegratedSecur ity we get the
following message after login in our application:

Login failed for user ''. The user is not associated with a trusted SQL
Server connection.

I don´t know if it even doesn´t see the username and password I
write, or if it is a problem with permission.... What I don´t
understand is that we haven't this problem with the integrated web
server and yes with IIS...
Concerning accesing directly the Default.aspx page I have already put
it as predetermined at the virtual directory but I only achieve to see
it if I check Windows Authentication but in that case when I want to
see the page from another machine I get the authentication window... (
It happens the same to see the images/pictures I have...)

Any idea...?
Thanks!

Jan 5 '07 #1
5 1622
yes, that is exactly what I have and it works, but we don´t want to
use it like that but with Integrated Security, and we don´t know why
it doesn´t work in that case ...or how to make it work,do you...?

Jan 5 '07 #2
"CFTK" <cr************ ***@gmail.comwr ote in message
news:11******** **************@ v33g2000cwv.goo glegroups.com.. .
yes, that is exactly what I have and it works, but we don´t want to
use it like that but with Integrated Security, and we don´t know why
it doesn´t work in that case ...or how to make it work,do you...?
Integrated Security means that SQL Server's security is "integrated " into
Windows security i.e. you can use a Windows login account to gain access to
SQL Server.

When you configure your connection string to use integrated security, it
will try to connect to SQL Server using the Windows security credentials of
the current context i.e. whatever user is running the current process.

The 'sa' account is not a Windows accout - it's a built-in SQL Server
account - so it can't be used with integrated security.

As a general rule, it is bad practice to use the sa account for anything
other than system administration by the DBA...
Jan 5 '07 #3
CFTK wrote:
we´re having problems to put our Website at IIS:
We have achieved it all works using the connectionStrin g with user and
password of the superuser (sa), but with IntegratedSecur ity we get the
following message after login in our application:

Login failed for user ''. The user is not associated with a trusted SQL
Server connection.

I don´t know if it even doesn´t see the username and password I
write, or if it is a problem with permission.... What I don´t
understand is that we haven't this problem with the integrated web
server and yes with IIS...

Do these help?

http://msdn.microsoft.com/msdnmag/is...ecurityBriefs/

http://support.microsoft.com/kb/810572

Both discussing issues with authentication, especially across multiple
machines, which is where this problem most frequently appears.

Damien

Jan 5 '07 #4
Thanks!!!!!!!!! !!!!!!

Jan 9 '07 #5
I´m still just reading and it looks perfect, but I have ended up in
the article you referred me to

( http://support.microsoft.com/kb/810572)

where it says that to configure ASP.NET for delegation we have to put
in our web.config file <authenticati on mode="Windows"/>
but that´s avoids all the membership/roles configuration I have for my
aplication... ( i.e WAT).

Can´t it be done with <authenticati on mode="Forms"/??? ( In that
case I´d be lost!!)

Wait for your reply.Thanks in advance!

Jan 9 '07 #6

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

Similar topics

0
1293
by: DukeNM | last post by:
I have a ms sql database server backup maintainance. I have scheduled for backup daily at 11:00 pm however the backup doesnt take place. after lookin at the logs it shows me.... Login failed for user 'sa' what does this mean ?
2
14617
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...
2
31086
by: Blake Versiga | last post by:
I am pulling my hair out..... I am trying to put a bound data grid on a webform... I have 4 data connections in my server explorer, all of which connect successfully. But when I run the web page I get the error: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. I use a connection string in my...
3
4904
by: Mr.KisS | last post by:
Hello all, I'm working with Windows XP PRO SP1, ASP.NET v2 (with Visual Web Dev) and, MS SQL 2005 with a database with Windows Authentication mode. I've an aspx page which must send a query to the database. But i have this exception : Login failed for user 'KLEO\ASPNET'. Description: An unhandled exception occurred during the execution...
0
963
by: amos hchmon | last post by:
What means this error? I just do a simple fill dataset and data bind to datagrid.
12
6551
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I have added the new user to the database and have given the user access to the database for the app. But everytime I try and login using this users ID,...
0
1043
by: Dennis | last post by:
I am working on an ASP.NET 2.0 site. It runs fine on my local PC. When I deploy it to the server I get this error: Login failed for user ''. The user is not associated with a trusted SQL Server connection. SqlException (0x80131904): Login failed for user ''. The user is not associated with a trusted SQL Server connection.]...
4
3779
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on the production web server, which runs Windows 2008 Server and IIS 7. The login page comes up, but when I try to log in, I get the error, "Login...
1
2285
by: SantyBhi | last post by:
Hi , ...i am developing web Site in asp.Net. When i Run Web Site using Visual studio i dont get the error.it works fine ...But When i run WebSite by publishing on IIS .i am getting the following error. ********** ERROR: Login failed for user 'TEGASYSIND\TEGADEV3$'. Description: An unhandled exception occurred during the execution of the...
0
8118
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...
0
7962
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...
0
6277
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...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
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...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2105
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
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.