| re: Connecting Database in thread
No, that is not the case. I have "Unchecked" anonymous access in IIS, still
it is giving an error. In fact when I don't use threading my connection with
database is working fine.
Makarand
"jkumarg" wrote:
[color=blue]
> The anonymous access should be disabled in IIS in order to authenticate the
> user using windows authentication.
> Go to IIS, right-click on your application name and select properties.
> Go to Directory security tab-> click on Edit... button.
> Uncheck the Anonymous access check box and press Ok.
>
> Now, the user should be authenticated using windows authentication..
>
> HTH
>
> "Makarand Keer" wrote:
>[color=green]
> > 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.[/color][/color] |