Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
Questionmaking of .csv file at run time Pin
MS Lee23-Dec-08 20:35
MS Lee23-Dec-08 20:35 
AnswerRe: making of .csv file at run time Pin
That's Aragon23-Dec-08 21:41
That's Aragon23-Dec-08 21:41 
AnswerRe: making of .csv file at run time Pin
beatles169223-Dec-08 22:48
beatles169223-Dec-08 22:48 
QuestionGet SQL provider list Pin
That's Aragon23-Dec-08 19:34
That's Aragon23-Dec-08 19:34 
AnswerRe: Get SQL provider list Pin
That's Aragon23-Dec-08 19:54
That's Aragon23-Dec-08 19:54 
GeneralRe: Get SQL provider list Pin
MS Lee23-Dec-08 22:14
MS Lee23-Dec-08 22:14 
GeneralRe: Get SQL provider list Pin
That's Aragon23-Dec-08 22:37
That's Aragon23-Dec-08 22:37 
QuestionProblem while launching an Application through windows service, Process.start() gives an error message Pin
fulbright23-Dec-08 18:44
fulbright23-Dec-08 18:44 
An eventing service (Project server event handler) is running on windows 2003 server. This service is running under the user "Network Service". This eventing service triggers event handlers against certain events performed on Microsoft Project. The problem occurs when my event handler tries launching an application under the user different than "Network Service". Following is the source code using which i try launching console application under the user which is a domain admin.

public override void onpublish(PSContextInfo ps, ProjectPostPublishEventArgs e)
{
SecureString ssPwd = new SecureString();
foreach ( char c in "password" )
ssPwd.Append(c);


Process myProcess = new Process();
myProcess.StartInfo.FileName = @"C:\test\test\bin\release\test.exe";

myProcess.StartInfo.Domain = "myDomain";
myProcess.StartInfo.User = "domainAdmin"; // domain administrator
myProcess.StartInfo.Password = ssPwd;

myProcess.StartInfo.UseShellExecute = false;
myProcess.Start();
}

Fails in launching executable stating "The Application failed to initialize properly(0xc0000142). Click on OK to terminate the application"

If I comment out the source lines, those specifying the username,domain and password, the executable is launched successfully, but under the user "Network Service". (Like i mentioned earlier the project server's eventing service is running under "Network Service" user) But that doesn't fulfill my requirement. It seems the windows service running under the lower credentials cannot launch the process with higher credentials. I've searched a lot with the problem with no result yet . Frown | :-(
Any one please help into this ....

fulbright

Question3D Canvas class Pin
a_david12323-Dec-08 18:20
a_david12323-Dec-08 18:20 
AnswerRe: 3D Canvas class Pin
Christian Graus23-Dec-08 21:46
protectorChristian Graus23-Dec-08 21:46 
QuestionAn API Question ? Pin
Mohammad Dayyan23-Dec-08 16:52
Mohammad Dayyan23-Dec-08 16:52 
AnswerRe: An API Question ? Pin
Christian Graus23-Dec-08 17:00
protectorChristian Graus23-Dec-08 17:00 
GeneralRe: An API Question ? Pin
Mohammad Dayyan23-Dec-08 17:03
Mohammad Dayyan23-Dec-08 17:03 
GeneralRe: An API Question ? Pin
N a v a n e e t h23-Dec-08 17:10
N a v a n e e t h23-Dec-08 17:10 
AnswerRe: An API Question ? Pin
N a v a n e e t h23-Dec-08 17:01
N a v a n e e t h23-Dec-08 17:01 
QuestionPostscript custom page size settings can not be remembered Pin
zhouql0523-Dec-08 16:43
zhouql0523-Dec-08 16:43 
QuestionWebBrowser and threads Pin
Matthew Klein23-Dec-08 13:33
Matthew Klein23-Dec-08 13:33 
GeneralRe: WebBrowser and threads Pin
Luc Pattyn23-Dec-08 13:55
sitebuilderLuc Pattyn23-Dec-08 13:55 
AnswerRe: WebBrowser and threads [modified] Pin
N a v a n e e t h23-Dec-08 16:45
N a v a n e e t h23-Dec-08 16:45 
AnswerRe: WebBrowser and threads Pin
Matthew Klein29-Dec-08 11:35
Matthew Klein29-Dec-08 11:35 
QuestionWhere to buy apps and programs from programmers? Pin
kevindill23-Dec-08 12:26
kevindill23-Dec-08 12:26 
AnswerRe: Where to buy apps and programs from programmers? Pin
PIEBALDconsult23-Dec-08 12:28
mvePIEBALDconsult23-Dec-08 12:28 
AnswerRe: Where to buy apps and programs from programmers? Pin
Not Active23-Dec-08 12:38
mentorNot Active23-Dec-08 12:38 
AnswerRe: Where to buy apps and programs from programmers? Pin
Christian Graus23-Dec-08 13:22
protectorChristian Graus23-Dec-08 13:22 
AnswerRe: Where to buy apps and programs from programmers? Pin
Matthew Klein23-Dec-08 13:34
Matthew Klein23-Dec-08 13:34 

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.