Click here to Skip to main content
15,918,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web application that uses windows authentication to validate users. It also uses a specified user in its application pool. I need to pass the application pool user to the database whenever it makes a connection. It doesn't seem to be passing the proper id to the database to make the connection.

When I check the database server I see the following error every time I hit the webapp.
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors

Below is the configuration line in the web config.
XML
<add name="OLTPConnectionString" connectionString="Data Source=myservername.domain.local;Initial Catalog=DevDB;Integrated Security=True;" />
 </connectionStrings>


Regards
Farhan
Posted
Updated 12-Sep-11 19:53pm
v2

1 solution

Hello Dears,



I revisited all the ROLES AND permissions for Network service and gave appropriate permissions (eg: dbOwner) and this gave me the answer to all my questions. I was able to connect to the database and run my application correctly :)



Thanks All for your answers...



Regards,

Farhan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900