i type the right Username and Password with administrative rights what do u think ?
That is my code
const string file = "cmd.exe";
var sspw = new SecureString();
foreach (var c in "password")
sspw.AppendChar(c);
var proc = new Process();
proc.StartInfo.UseShellExecute = false; proc.StartInfo.WorkingDirectory = Path.GetDirectoryName(file);
proc.StartInfo.FileName = Path.GetFileName(file);
proc.StartInfo.Domain = "REMOTEPC";
proc.StartInfo.Arguments = "";
proc.StartInfo.UserName = "username";
proc.StartInfo.Password = sspw;
proc.StartInfo.LoadUserProfile = false; proc.Start();
Upendra Pratap ShahiPosted Jun 5, 2015, 1:52 AM
This error occurs cuz your sql connection is not properly closed & it leads to max no of open connections. make sure your sql connection object is properly closed.
Restart to your system to release all resource. OR Restart your IIS & sql Server Services.
Lucky LaxmanPosted Jun 5, 2015, 12:48 AM