?
Solved

System.Security.SecurityException:

Posted on 2009-07-12
2
Medium Priority
?
1,149 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 2000 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

752 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