By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,732 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Login failed for user '(null)'. vs asp.net

P: n/a
ASP.NET vs SQL Serverž

I have an ASP.NET Application
In IIS I checked the Integrated Windows Authentication
option

In Web.Config the connection string include Integrated
Security = SSPI
and Impersonate=true in Web.Config

When I start then Web Application I have this messge
Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection.
Could you help me

PS My account have the permission to connect to SQl Server

the security model is base on role security
I have many users


Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try unchecking the anonymous access check box in IIS .

Jul 19 '05 #2

P: n/a
Ian
Hi,

This should fix it (ASP.NET won't impersonate if you have IIS allowing
anonymous access first) but if you still have the issue, turn on SQL
Profiler and trace the failed login.

HTH

Ian

"Preeti" <pr*****@online.microsoft.com> wrote in message
news:Ml****************@cpmsftngxa06.phx.gbl...
Try unchecking the anonymous access check box in IIS .

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.