Solved

System.Security.SecurityException:

Posted on 2009-07-12
2
1,124 Views
Last Modified: 2012-05-07
Installing assembly 'C:\WroxSamples\PaidTimeOffSolution\EmailService\bin\Debug\emailservice.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\WroxSamples\PaidTimeOffSolution\EmailService\bin\Debug\emailservice.exe
   logfile = C:\WroxSamples\PaidTimeOffSolution\EmailService\bin\Debug\emailservice.InstallLog
Installing service EmailService...
Service EmailService has been successfully installed.
Creating EventLog source EmailService in log Application...
Committing assembly 'C:\WroxSamples\PaidTimeOffSolution\EmailService\bin\Debug\emailservice.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = C:\WroxSamples\PaidTimeOffSolution\EmailService\bin\Debug\emailservice.exe
   logfile = C:\WroxSamples\PaidTimeOffSolution\EmailService\bin\Debug\emailservice.InstallLog
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Uninstalling assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Removing EventLog source EmailService.
An exception occurred during the uninstallation of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
Installing assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Installing service EmailService...
Creating EventLog source EmailService in log Application...
Rolling back assembly 'D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.exe
   logfile = D:\inetpub\wwwroot\PaidTimeOffSolution\EmailService\bin\Debug\EmailService.InstallLog
Restoring event log to previous state for source EmailService.
An exception occurred during the Rollback phase of the System.Diagnostics.EventLogInstaller installer.
System.Security.SecurityException: The source was not found, but some or all event logs could not be searched.  Inaccessible logs: Security.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will continue. However, the machine might not fully revert to its initial state after the rollback is complete.
0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Rahul Goel ITIL earned 500 total points
ID: 24838119
Step 1:

# Start -> Run -> regedit.exe
# Navigate to My Computer > HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog
# Right click this key, select Permissions, and grant the ASPNET account read/write permissions as described above. Note that for the "inaccessible" logs (ie. Security, Virtual Server), you'll also need to grant read access, as permissions have been set to not inherity from the parent key.
# Restart IIS (start -> Run  -> iisreset)
# Cause the code line that creates the event source to be executed (EventLog.CreateEventSource())

Step 2:

Go in Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups

Select Administrator Group -> Right Click -> Add to Group Users "Network Service".

It should Work

ASPNET is replaced in Vista with "Network Service".


For Other OS

Go in Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups
Select Administrator Group -> Right Click -> Add to Group Users "Network Service".

0
 

Author Comment

by:mathieu_cupryk
ID: 24839319
I added network servie to the folder in vista and still nothing.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question