Windows Authentication with ASP.Net and SQL Server

S

Siobhan

Hi - I am trying to set up Windows Authentication for an application to pass
through credentials to SQL Server but I have done everything that most
documentation seems to say to do but keep getting The request failed with
HTTP Status 401: Access Denied !!
My set up is as follows:
Development PC running Win XP, IIS and VS2003
IIS Settings: Anon access is unchecked, Basic and Digest Auth are unchecked,
Integrated Windows Authentication is checked
Web.Config has the following lines:
<identity impersonate="true"/>
<authentication mode="Windows" />
SQL Server connect string:
"Data Source=ServerName;Initial Catalog=DBName;Integrated
Security=SSPI;persist security info=False;Trusted_Connection=Yes"


SQL Server is SQL Server 2000 and running on Win 2000 server remotely

User setup in SQL Server (my network account which I am logged in as) has
access to the db in question, SQL Server configure for mode mode
authentication

Is there anything else I need to do?

Much thanks in advance!
 
P

Patrick.O.Ige

Or Siobhan you could hard code your username and passowrd like
<identity impersonate="true" username="" passowrd="" />
But i guess its not the best way to do it..
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top