Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
getting an exception during installation of a window service
 
as
"System.Security.SecurityException" the source was not found, but some or all event logs could be searched. Inaccessible logs : Scurity.
 

Running a transacted installation.
 
Beginning the Install phase of the installation.
See the contents of the log file for the D:\Deepak\CRMService\crm_Service\WindowsService1\bin\Debug\WindowsService1.exe assembly's progress.
The file is located at D:\Deepak\CRMService\crm_Service\WindowsService1\bin\Debug\WindowsService1.InstallLog.
 
An exception occurred during the Install phase.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
 
The Rollback phase of the installation is beginning.
See the contents of the log file for the D:\Deepak\CRMService\crm_Service\WindowsService1\bin\Debug\WindowsService1.exe assembly's progress.
The file is located at D:\Deepak\CRMService\crm_Service\WindowsService1\bin\Debug\WindowsService1.InstallLog.
 
The Rollback phase completed successfully.
 
The transacted install has completed.
 

 

 
please help
Posted 7-Nov-12 3:30am
Edited 7-Nov-12 3:35am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try to run the install application (I think you use InstallUtil) as administrator.
Right-click on the shortcut to the command prompt you're using, and choose "Run as administrator".
  Permalink  
Comments
djrocks0101 at 8-Nov-12 0:11am
   
I have installed the service successfully but I am not able to start it as it pop ups a message "The Service on Local system started and then stopped. Some Services stop automatically they are not in use by other service or program"
please help
djrocks0101 at 8-Nov-12 0:13am
   
I want to create a service which retrieve some data from database and send an email to me in every minute. As I have said I have created it but not able to start it..
So I need some help.
ProgramFOX at 8-Nov-12 11:44am
   
For that problem, I can't help you. I tried once to create a service, and I got the same message.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 568
1 OriginalGriff 384
2 George Jonsson 258
3 Abdul Samad KP 135
4 Animesh Datta 130
0 OriginalGriff 6,099
1 Sergey Alexandrovich Kryukov 5,411
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100