TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft SQL Server

Notices

IIS server set up for .net app

Microsoft SQL Server


Reply
 
Thread Tools Display Modes
Old 11-12-2007, 04:39 PM   #1
mecn
Guest
 
Posts: n/a
IIS server set up for .net app

Hi,

I use windows authentication for .net app to connection to sql 2k server.
I got the following error ---(Login failed for user '(null)'. Reason: Not
associated with a trusted SQL Server connection)

Connection string ------- server=sql serv1;database=mydb;trusted_connection
= true

appserver = app1

Any ideas?


  Reply With Quote
Old 11-12-2007, 04:41 PM   #2
Norman Yuan
Guest
 
Posts: n/a
Re: IIS server set up for .net app

The idea is that the windows user account used to run your application
(Window Form app or ASP.NET app?) does not have a mapped SQL Server login
created in the SQL Server, thus cannot log into SQL Server.

You need to create a SQL Server login that mapps to that windows user
account or a Windows user security group, which includes that user account
as member. Then you need to add this SQL Server login to target database as
user, then assign appropriate permissions.


"mecn" <> wrote in message
news:%.gbl...
> Hi,
>
> I use windows authentication for .net app to connection to sql 2k server.
> I got the following error ---(Login failed for user '(null)'. Reason: Not
> associated with a trusted SQL Server connection)
>
> Connection string ------- server=sql
> serv1;database=mydb;trusted_connection = true
>
> appserver = app1
>
> Any ideas?
>


  Reply With Quote
Old 11-12-2007, 04:46 PM   #3
Ekrem Önsoy
Guest
 
Posts: n/a
Re: IIS server set up for .net app

Ensure that the Windows Account that you work your app under is added to the
domain and it has a valid Login in your SQL Server.

If the Windows user account is not in your domain and you use Trusted
Connections then you get this error.

--
Ekrem Önsoy



"mecn" <> wrote in message
news:%.gbl...
> Hi,
>
> I use windows authentication for .net app to connection to sql 2k server.
> I got the following error ---(Login failed for user '(null)'. Reason: Not
> associated with a trusted SQL Server connection)
>
> Connection string ------- server=sql
> serv1;database=mydb;trusted_connection = true
>
> appserver = app1
>
> Any ideas?
>


  Reply With Quote
Old 11-12-2007, 05:15 PM   #4
Ekrem Önsoy
Guest
 
Posts: n/a
Re: IIS server set up for .net app

Ensure that the Windows Account that you work your app under is added to the
domain and it has a valid Login in your SQL Server.

If the Windows user account is not in your domain and you use Trusted
Connections then you get this error.

--
Ekrem Önsoy



"mecn" <> wrote in message
news:%.gbl...
> Hi,
>
> I use windows authentication for .net app to connection to sql 2k server.
> I got the following error ---(Login failed for user '(null)'. Reason: Not
> associated with a trusted SQL Server connection)
>
> Connection string ------- server=sql
> serv1;database=mydb;trusted_connection = true
>
> appserver = app1
>
> Any ideas?
>


  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 02:43 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional