PC Review


Reply
Thread Tools Rate Thread

the application failed to initialize the properly(0xc0000142)

 
 
rajezh@gmail.com
Guest
Posts: n/a
 
      8th Feb 2007

Sir,
Im using ASP.NET 2.0. In my project, I used ProcessStartInfo
to execute C# .exe console application. It works fine when I run
thorough Visual Studio.But when i run this code
through virtual directory after deploying ( on the same system ) , It
gives the following error
" the application failed to initialize the properly(0xc0000142)". Pls
help me.
I have this error for the past one month.

This is my code. Pls verify it.



System.Diagnostics.ProcessStartInfo myProcess = new
System.Diagnostics.ProcessStartInfo(sPath);

myProcess.UserName =
ConfigurationManager.AppSettings["UserName"];

string pswd =
ConfigurationManager.AppSettings["Password"];
System.Security.SecureString password = new
System.Security.SecureString();
foreach (char c in pswd)
password.AppendChar(c);
myProcess.Password = password;
myProcess.WorkingDirectory =
ConfigurationManager.AppSettings["WorkingDirectory"];
myProcess.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Normal;

myProcess.Arguments = sArguments;
myProcess.UseShellExecute = false;
System.Diagnostics.Process.Start(myProcess);

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application failed to initialize properly (0xc0000142) Roger Van Loon Windows Vista General Discussion 3 11th Jan 2008 11:10 PM
The application failed to initialize properly (0xc0000142). lonelyplanetboy@gmail.com Windows XP Internet Explorer 1 2nd Jun 2006 01:14 AM
Application failed to initialize properly (0xc0000142) Alexandre Soares Microsoft Windows 2000 1 22nd Sep 2005 11:06 PM
Re: 0xc0000142 - The application failed to initialize properly vleisbom Windows XP Embedded 0 10th Mar 2005 02:23 PM
0xc0000142 - The application failed to initialize properly =?Utf-8?B?dmxlaXNib20=?= Windows XP Embedded 1 17th Dec 2004 07:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:31 PM.