Click here to Skip to main content
15,892,768 members
Home / Discussions / C#
   

C#

 
AnswerRe: i want to start C# Pin
RobCroll25-Mar-12 14:27
RobCroll25-Mar-12 14:27 
AnswerRe: i want to start C# Pin
solutions@ashish25-Mar-12 19:28
solutions@ashish25-Mar-12 19:28 
AnswerRe: i want to start C# Pin
ProEnggSoft25-Mar-12 21:57
ProEnggSoft25-Mar-12 21:57 
Questionconstructor Pin
altafmohd25-Mar-12 4:57
altafmohd25-Mar-12 4:57 
AnswerRe: constructor Pin
JF201525-Mar-12 7:01
JF201525-Mar-12 7:01 
AnswerRe: constructor Pin
PIEBALDconsult25-Mar-12 7:39
mvePIEBALDconsult25-Mar-12 7:39 
AnswerRe: constructor Pin
DaveyM6926-Mar-12 2:29
professionalDaveyM6926-Mar-12 2:29 
Questionrestore Pin
nitish_0724-Mar-12 22:41
nitish_0724-Mar-12 22:41 
BasePriority = 'process.BasePriority' threw an exception of type 'System.InvalidOperationException'...This is the exception I am getting while restoring the database from my .net application..Here I am providing the code....
try
           {
               //Read file from C:\
               string path;
               path = filetext.Text;
               StreamReader file = new StreamReader(path);
               string input = file.ReadToEnd();
               file.Close();

               ProcessStartInfo psi = new ProcessStartInfo();
               psi.FileName = @"C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin\mysqlimport.exe";
               psi.RedirectStandardInput = true;
               psi.RedirectStandardOutput = false;
               psi.Arguments = string.Format(@"-u{0} -p{1} -h{2} {3}",
                  userid, paswd, server, comboBox1.Text);
               psi.UseShellExecute = false;

               Console.WriteLine(psi);
               Process process = Process.Start(psi);
               process.StandardInput.WriteLine(input);
               process.StandardInput.Close();
               process.WaitForExit();
               process.Close();
               MessageBox.Show("database is restored");
           }
           catch (IOException ex)
           {
               MessageBox.Show("Error , unable to Restore!");
           }

Plz provide any suggestion....
AnswerRe: restore Pin
Abhinav S24-Mar-12 23:32
Abhinav S24-Mar-12 23:32 
GeneralRe: restore Pin
ProEnggSoft25-Mar-12 1:30
ProEnggSoft25-Mar-12 1:30 
GeneralRe: restore Pin
nitish_0725-Mar-12 6:59
nitish_0725-Mar-12 6:59 
AnswerRe: restore Pin
PIEBALDconsult25-Mar-12 4:20
mvePIEBALDconsult25-Mar-12 4:20 
GeneralRe: restore Pin
altafmohd25-Mar-12 4:49
altafmohd25-Mar-12 4:49 
GeneralRe: restore Pin
PIEBALDconsult25-Mar-12 5:13
mvePIEBALDconsult25-Mar-12 5:13 
GeneralRe: restore Pin
altafmohd25-Mar-12 5:48
altafmohd25-Mar-12 5:48 
QuestionBắt sự kiện nút ok của hộp thoại print Pin
nhanlaptrinh24-Mar-12 18:59
nhanlaptrinh24-Mar-12 18:59 
AnswerRe: Bắt sự kiện nút ok của hộp thoại print Pin
OriginalGriff24-Mar-12 20:49
mveOriginalGriff24-Mar-12 20:49 
QuestionAuto Connect For HeadSet Pin
Smart Arab24-Mar-12 11:07
Smart Arab24-Mar-12 11:07 
AnswerRe: Auto Connect For HeadSet Pin
Richard Andrew x6424-Mar-12 13:14
professionalRichard Andrew x6424-Mar-12 13:14 
SuggestionRe: Auto Connect For HeadSet Pin
Eddy Vluggen25-Mar-12 3:30
professionalEddy Vluggen25-Mar-12 3:30 
GeneralNokia Blocked my country Pin
Smart Arab25-Mar-12 6:30
Smart Arab25-Mar-12 6:30 
QuestionVisualt Studio 2008 Team Suite for Blackberry Pin
mauricemcse24-Mar-12 2:36
mauricemcse24-Mar-12 2:36 
AnswerRe: Visualt Studio 2008 Team Suite for Blackberry Pin
Wes Aday24-Mar-12 4:36
professionalWes Aday24-Mar-12 4:36 
QuestionThe process cannot access the file because it is being used by another process. Pin
ausia1924-Mar-12 2:34
ausia1924-Mar-12 2:34 
AnswerRe: The process cannot access the file because it is being used by another process. Pin
OriginalGriff24-Mar-12 2:51
mveOriginalGriff24-Mar-12 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.