G
Guest
Hi all Gurus
I have asp.net application where I am creating background process using
Threading.
My threading involves invoking method which in turn gets some data from SQL
server using Windows Authentication.
But when I run my app, connection error comes as "{"Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection." }".
When I check the System.Threading.Thread.CurrentPrincipal properties it
comes correctly.
I have tried with setting both <identity impersonate="false"/> and <identity
impersonate="true"/>, but did not work.
When I used SQL user iD and Password in my connection string it works very
well.
Any help is appreicated.
Makarand
Kindly help.
I have asp.net application where I am creating background process using
Threading.
My threading involves invoking method which in turn gets some data from SQL
server using Windows Authentication.
But when I run my app, connection error comes as "{"Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection." }".
When I check the System.Threading.Thread.CurrentPrincipal properties it
comes correctly.
I have tried with setting both <identity impersonate="false"/> and <identity
impersonate="true"/>, but did not work.
When I used SQL user iD and Password in my connection string it works very
well.
Any help is appreicated.
Makarand
Kindly help.