Saving the web.config file can restart your app. This might have unexpected
consequences. You could put the user identies into an application scope
collection upon Session_Start and build custom security handlers that check
for a flag or existence in a collection.
Dale
[quoted text, click to view] "Saurabh Nandu" <SaurabhNandu@discussions.microsoft.com> wrote in message
news:D21634E5-73D7-4362-BE35-7288672C00B6@microsoft.com...
> If you are using Windows Authentication then you can just modify the
web.config file to state that you need Windows Credentials for users
accessing the web service.
[quoted text, click to view] > This can be done without a recompile.
>
> But you will have to modify the consuming client to send accross the valid
credentials..
>
> --
> Regards,
> Saurabh Nandu
> AksTech Solutions, reflecting your needs...
> [
www.AksTech.com ]
> [
www.MasterCSharp.com ]
>
>
>
> "Raghu Raman" wrote:
>
> >
> >
> > I've created a web service which runs thru web referrences and returns
> > a dataset to the Web forms.It gets the conn.string & qry as parameters
> > and produces the dataset.
> >
> > I want to restrict the users accessing the web service & i can do that
> > in web.config file , if i know the users while creating the web service.
> >
> > Is it possiable to restrict the users accessing the web service (after
> > it is running as dll) from the web forms with out altering the web
> > service physically.
> >
> >
> > With thanks in advance
> > Raghuraman
> >
> >
> > *** Sent via Developersdex
http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!
> >