Solved

System.Security.SecurityException:

Posted on 2009-07-12
2
1,076 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
2 Comments
 
LVL 9

Accepted Solution

by:
Rahul Goel 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now