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

C#

 
GeneralRe: Books on C# Threading... Pin
David Stone11-Oct-03 18:37
sitebuilderDavid Stone11-Oct-03 18:37 
GeneralRe: Books on C# Threading... Pin
Nick Parker12-Oct-03 11:10
protectorNick Parker12-Oct-03 11:10 
GeneralRemote events that instantiate and show new Forms Pin
jerrycainjr11-Oct-03 14:04
jerrycainjr11-Oct-03 14:04 
General3Tier applications and database replicating using C# Pin
DanFreddy11-Oct-03 11:57
DanFreddy11-Oct-03 11:57 
GeneralSerializing and Events Pin
jparsons11-Oct-03 9:49
jparsons11-Oct-03 9:49 
GeneralRe: Serializing and Events Pin
leppie11-Oct-03 23:22
leppie11-Oct-03 23:22 
GeneralRe: Serializing and Events Pin
jparsons12-Oct-03 13:31
jparsons12-Oct-03 13:31 
GeneralTypeInitializationException and Windows Service Pin
devvvy11-Oct-03 9:28
devvvy11-Oct-03 9:28 
Hi, I'm writing a Windows Service that launches a Windows App on startup. So, what I did was, in OnStart( ):

System.Diagnostics.Process process = System.Diagnostics.Process.Start("C:\\Program Files\\Testing\\ThisWinApp.exe");

I successfully installed the service using InstallUtil.exe. When I "start" the service, I keep getting "TypeInitializationException". Account used in ServiceProcessInstaller is "LocalSystem" - does it has permission to run executable and run exe in "Program Files" folder? I can't configure these rights on my XP machine.

Reference: http://www.dotnet247.com/247reference/msgs/30/150246.aspx

Anyway, I used caspol.exe to check permission on the assembly. Intersecting permission from across "level", the assembly (the Windows Service) got "Fulltrust". So, if it's got to do with security, it must be user role launching/starting the service.

Now, if it's not security, perhaps it's got to do with the fact that any class derived from ServicedBase can't launch anything that has a GUI?

Thanks in advance.

norm
GeneralGenerating public and private keys... Pin
Meysam Mahfouzi11-Oct-03 7:24
Meysam Mahfouzi11-Oct-03 7:24 
GeneralRe: Generating public and private keys... Pin
Blake Coverett11-Oct-03 10:17
Blake Coverett11-Oct-03 10:17 
GeneralRe: Generating public and private keys... Pin
Meysam Mahfouzi11-Oct-03 20:19
Meysam Mahfouzi11-Oct-03 20:19 
GeneralRe: Generating public and private keys... Pin
Blake Coverett11-Oct-03 20:44
Blake Coverett11-Oct-03 20:44 
GeneralRe: Generating public and private keys... Pin
Meysam Mahfouzi12-Oct-03 17:19
Meysam Mahfouzi12-Oct-03 17:19 
GeneralRe: Generating public and private keys... Pin
Meysam Mahfouzi14-Oct-03 18:08
Meysam Mahfouzi14-Oct-03 18:08 
GeneralRemoving Windows Services and event log Pin
devvvy11-Oct-03 5:26
devvvy11-Oct-03 5:26 
GeneralRe: Removing Windows Services and event log Pin
Daniel M. Edwards11-Oct-03 6:25
Daniel M. Edwards11-Oct-03 6:25 
GeneralRe: Removing Windows Services and event log Pin
devvvy11-Oct-03 6:42
devvvy11-Oct-03 6:42 
GeneralRe: Removing Windows Services and event log Pin
Daniel M. Edwards11-Oct-03 7:30
Daniel M. Edwards11-Oct-03 7:30 
GeneralRe: Removing Windows Services and event log Pin
devvvy11-Oct-03 7:31
devvvy11-Oct-03 7:31 
GeneralRe: Removing Windows Services and event log Pin
devvvy11-Oct-03 7:31
devvvy11-Oct-03 7:31 
GeneralRe: Removing Windows Services and event log Pin
Daniel M. Edwards11-Oct-03 7:38
Daniel M. Edwards11-Oct-03 7:38 
GeneralRe: Removing Windows Services and event log Pin
devvvy11-Oct-03 7:51
devvvy11-Oct-03 7:51 
GeneralRe: Removing Windows Services and event log Pin
Daniel M. Edwards11-Oct-03 9:24
Daniel M. Edwards11-Oct-03 9:24 
GeneralDisable scrollbars Pin
Gary Kirkham11-Oct-03 3:47
Gary Kirkham11-Oct-03 3:47 
GeneralRe: Disable scrollbars Pin
phimix17-Jan-04 2:30
phimix17-Jan-04 2:30 

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.