Click here to Skip to main content
12,632,477 members (32,842 online)
Rate this:
 
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 4:30am
Updated 7-Nov-12 4: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 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.
ProgramFOX 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2016
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