Re: error: {System.Runtime.InteropServices.COMException} occured



You don't need to impersonate, you simply have to use the DirectoryEntry
overload that takes a username and password to connect to the AD.

Willy.
"iusfani" <Inam.Yousfani@xxxxxxxxx> wrote in message
news:1123258288.820089.133260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I have tried running the same code on console and it runs perfectly.
> Now I think Nicholas was right. It was the ASPNET user's problem.
>
> Tell me how to set the impersonation in web.config? Any idea?
>
> Inam,
>


.



Relevant Pages

  • Re: file download
    ... The problem is impersonate got failure. ... after impersonate i writen the username, its shows the current username and ... Most likely they are in a folder that does not ... Noww when I click the download button, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to pass nt password ?
    ... > f) the logonuser fucntion requires username, ... > Hope this explains why i want to pass my "password" onto other machines to impersonate. ... Services can have their own credentials. ... So long as the account exists on the local machine, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Query AD using Integrated Authentication?
    ... trying to do a bind with a username and a blank password. ... The way you have to do this with WIA is to impersonate the logged on user ... the credentials of the current security context (the user you are ... how to pass the username/password information while using Integrated ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: capture window username to imporsonate
    ... special account. ... imagine how insecure the system would be if any program ... at any time could read both the username and password. ... ASP.NET makes it relatively easy to impersonate the logged in user. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Uploading web service
    ... You can still impersonate, but use one account -- domain or local, which has ... > I am making a web service which accesses a shared directory on the netwoek ... > give the userName & password of an authenticated user, ...
    (microsoft.public.dotnet.framework.webservices)