Last post Nov 13, 2009 07:46 AM by basanthalluri
May 25, 2007 03:23 PM|jagjot|LINK
Here is my code. when i run using vs 2005 it works fine. but when i try to run using localhost/app/page.aspx it pops up with error.
Line 58: 'Make a serach result
Line 59: Dim sr As SearchResult = searcher.FindOne
Aug 07, 2007 09:48 AM|emcfinest|LINK
I also have the exact error does someone already figure this out.
Aug 08, 2007 03:28 PM|jagjot|LINK
check this out
Jan 20, 2009 01:48 PM|rakesh_cs31|LINK
if u have solution of this problem.
Please give me.
i am gating same problem
: Logon failure: unknown user name or bad password
Jul 28, 2009 06:39 PM|amp0201|LINK
When I am trying to move the file from one server to another, I am getting the above mentioned error.
System.IO.File.Copy(f1.Path, sToFld )
where f1.Path - source server
sToFld - destination server
I believe its happening since the user credentials are different for both the servers. I was thinking of impersoantion, but I am not sure if impersonation works for remote computer.
Thanks for help in advance.
Jul 28, 2009 07:49 PM|raghu1|LINK
Your directory entry needs a userid/password that can search the domain. Most probably it is using the IIS worker process. Get a set of credentials from the network group that you can set. The equvalent c# is
DirectoryEntry.Username = ; DirectoryEntry.Password=
I don't think you need to load Property unless you are processing that seperately.
Also the syntax: sr.Properties("cn").Item(0).ToString is not correet. There is no Item.
Simple: sr.Properties("cn").Value.ToString() should be.
Sep 16, 2009 09:22 AM|olta|LINK
I am facing the same problem in my application.
I am trying to copy files from a server inside a folder in my application. In my development environment it works perfetly while when I publish my app in IIS in Server it generates me the error :
I have tried with impersonate in web.config but nothing.
Have anybody of you solved this issue? If yes please tell me how.
Sep 16, 2009 10:32 AM|jagjot|LINK
Try adding worker process in your web project folder on IIS.
Remember you must be under the domain you are trying to access.
try passing credentials in your code.(for testing puporses)
Let me know..
Nov 13, 2009 07:46 AM|basanthalluri|LINK
Did u find the solution for Logon Failure:Unknown user name or bad password?