I am developing a website.
 
I want to use widows credential to log onto SQL server for connection 
strings
So I have added code 

 

<system.web>

 <authentication mode="Windows"/>    <identity impersonate="true"   />

<authorization>      <deny users = "?" />

</authorization>

</System.web>

 

also i have 

<add name="ConnectionString" connectionString="Data 
Source=Servername;Initial Catalog=dbname;

     Integrated Security=SSPI;Trusted_Connection=Yes"      
providerName="System.Data.SqlClient" />

  

On IIS7 I have ASP.Net Impersonation Enabled and Windows Authentication Enabled

 

When I run Webpage i get error 

 

System.Data.SqlClient.SqlException: Login failed for user 'NT 
AUTHORITY\ANONYMOUS LOGON'

 

What Am I missing

-- 
-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

--- 
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to