OK, I know this has been a popular question from newbies. But, please
don't haste to reply yet.
I've googled and tested for a few hours, and cannot have this problem
resolved.
I have followed articles on the web and enabled "SQL Server and
Windows Authentication" for my SQL Server 2005. But, it does not
solve my problem. (It is actually my default setting for my SQL
Server)
I have been developing a web application at work just fine. I wanted
to work on it this weekend at home, so I brought everything back and
dumped it onto my home PC running WinXP SP2 and SQL Server 2005.
I am using the same connection string as follows:
"Data Source=localhos t;Initial Catalog=MyDatab ase; User Id=myusername;
Password=secret ;";
The database has been made to be compatible with SQL SERVER 2000.
I've added myusername to the database, and assigned it a dbowner
role.
Well, I can login as myusername using SQL Server Authentication and
view my database tables and do everything else, that means this
credential is fine with the database.
But, my application just cannot connect to this database, no matter
what. The error message says:
Exception Details: System.Data.Sql Client.SqlExcep tion: Login failed
for user 'myusername'. The user is not associated with a trusted SQL
Server connection.
Besides not enabling SQL Server Authentication, which is out of the
equation for my case, what else might be causing this problem?
Thank you! 2 2280
Is this an asp.net app? I might be trying to connect using the local
machine's ASPNET account.
"gnewsgroup " <gn********@gma il.comwrote in message
news:11******** **************@ y42g2000hsy.goo glegroups.com.. .
OK, I know this has been a popular question from newbies. But, please
don't haste to reply yet.
I've googled and tested for a few hours, and cannot have this problem
resolved.
I have followed articles on the web and enabled "SQL Server and
Windows Authentication" for my SQL Server 2005. But, it does not
solve my problem. (It is actually my default setting for my SQL
Server)
I have been developing a web application at work just fine. I wanted
to work on it this weekend at home, so I brought everything back and
dumped it onto my home PC running WinXP SP2 and SQL Server 2005.
I am using the same connection string as follows:
"Data Source=localhos t;Initial Catalog=MyDatab ase; User Id=myusername;
Password=secret ;";
Where do you use this ConnectionStrin g?
>
The database has been made to be compatible with SQL SERVER 2000.
I've added myusername to the database, and assigned it a dbowner
role.
Well, I can login as myusername using SQL Server Authentication and
view my database tables and do everything else, that means this
credential is fine with the database.
But, my application just cannot connect to this database, no matter
what. The error message says:
What is your application's ConnectionStrin g? I'd bet it is not EXACTLY the
same as the one you showed above, according to the error, is it?
If your application is ASP.NET app and you connect the app to SQL Server via
trusted connection (Windows authetication), then you need to know which user
account is running the application and then make that user account has a
matched SQL Server login and database user (if you do know how to set up SQL
Server login and database user (make a SQL Server login/database use as
dbowner maybe simple, but it would be severe security hole, if the database
is share by many users).
>
Exception Details: System.Data.Sql Client.SqlExcep tion: Login failed
for user 'myusername'. The user is not associated with a trusted SQL
Server connection.
Besides not enabling SQL Server Authentication, which is out of the
equation for my case, what else might be causing this problem?
Thank you! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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.
|
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...
|
by: rrober07 |
last post by:
Hello,
My Setup is I have a Web Server machine(Devweb01), Database SQL
Machine(Devsql01), a Client Machine(local machine) I have configured the
SQL machine as follows:
1) Added local Aspnet user account (with same password as aspnet user on IIS
(Devweb01))
2) edited local machine.config file <ProcessModel> Password attribute to
same password (both on IIS and SQL Machine)
3) SQL Server security is Sql Server and Windows
|
by: jerminator |
last post by:
Ok I need some help. Up until Tuesday my application was working fine.
It is an asp.net application written in VB. It is very data heavy and
makes multiple calls to a database. The application itself sits on an
IIS6.0 server. And the database is on an SQL2000 server with SP 3a.
On Tuesday we started getting an error when we tried to call up the
application. It said: Login failed for user '(null)'. Reason: Not
associated with a trusted...
| |
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.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection) +734867
|
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...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |