Re: Not associated with a trusted SQL Server connection.?
From: Rudy (Rudy_at_discussions.microsoft.com)
Date: Mon, 3 Jan 2005 21:43:02 -0800
Thanksm Jasper and Ken for your help!
I just downloaded the tool that Ken suggested, I will also download the doc
and read through it. Jasper, I did try your suggestion, but still no go.
Before I go any further, I want to make sure I'm even approaching this the
right way. This is my first time with a seperate SQL server. So I may be way
off base. I started this project on my "Localhost", which is my developer
machine. My SQL server, "SBSERVER" is on my domain. I want to run this on
my SQL server for 30 days or so, if the client like it, I want to be able to
put the program on his server when he pays in full.
So my virtual directory is on my IIS on "localhost". Do I need to make a new
virtual directory on "SBSERVER" and go from there. As I stated before, when I
copied my DB from one SQL server to the other;"SBSERVER", I get this error.
Thanks for all your help!!!
"Ken Schaefer" wrote:
> In addition to Jasper's links, I strongly recommend:
> (this is quite long, about 40 pages, but comprehensive)
> I would also recommend this tool for troubleshooting/analysis of your setup:
> Authentication and Access Control Diagnostics 1.0 (AuthDiag)
> "Jasper Smith" <email@example.com> wrote in message
> > The problem is the double hop from client->IIS->SQL. To enable a scenario
> > where you want to pass the users credentials to SQL you need to look at
> > using Kerberos. If the web app can run under one account you can change it
> > in IIS to run under a specific domain account and grant that the required
> > access to SQL. For more on Kerberos on WIn2000 with ASP.NET check out
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT05.asp
> > THe whole book is very useful and can be downloaded on PDF format
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/secnetlpMSDN.asp?frame=true
> > --
> > HTH
> > Jasper Smith (SQL Server MVP)
> > http://www.sqldbatips.com
> > I support PASS - the definitive, global
> > community for SQL Server professionals -
> > http://www.sqlpass.org
> > "Rudy" <Rudy@discussions.microsoft.com> wrote in message
> > news:6986E4CA-52BD-4D4E-907C-33ACC8262AE2@microsoft.com...
> >> Hello all,
> >> I'm developing a asp.net program. Everything works great, exceppt...
> >> When I moved my database from my developer machine, that has SQL on it,
> >> to
> >> my SQL server 2000 machine, I get the following error - "Login failed for
> >> user '(null)'. Reason: Not associated with a trusted SQL Server
> >> connection. "
> >> I checked all my permisions for my server, and DB. I'm working with IIS
> >> 5.0, and as far as I can tell, everything is set up fine. I'm just using
> >> windows auth, so at this point trying to make it as simple as possible.
> >> Do I
> >> need to link the computers together.
> >> Oh yeah, and it's on a domain. My domain server and SQL server are
> >> running
> >> on the same computer., my developer computer is also part of the domain.
> >> Any
> >> other info you need, I will be happy to supply. Any tips and help would
> >> be
> >> great!!
> >> TIA
> >> Rudy