Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.


CSS
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
Updated 7-Nov-12 3:35am
v2

1 solution

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".
 
Share this answer
 
Comments
djrocks0101 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 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.
Thomas Daniels 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900