Last post Aug 27, 2011 03:28 AM by shabirhakim1
Aug 25, 2011 03:13 AM|tmquan|LINK
I have this code below:
using (DirectoryEntry entry = new DirectoryEntry("WinNT://TMQUAN,computer"))
entry.Username = username;
entry.Password = password;
var obej = entry.NativeObject;
DirectoryEntry userEntry = entry.Children.Find(username);
if (userEntry == null) return false;
This code to validate local account in WinNT. The first time, I validate account1 then everything is ok. But I have an exception:
"Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again. (Exception from HRESULT: 0x800704C3)"
when i validate account2. I figure out that if I use the ASP.NET Server of Visual Studio, I don't get this exception. But when I host web into IIS, I get this exception.
Everyone can help me.
Aug 27, 2011 03:14 AM|shabirhakim1|LINK
I am not sure but you can try by replacing domain name with I.P Address
here is msdn support for this error
may be this url can help you
Aug 27, 2011 03:28 AM|shabirhakim1|LINK
Here you can see microsoft support for this error