System.Security.SecurityException:

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.
mathieu_cuprykAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rahul Goel ITILSenior Consultant - DeloitteCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mathieu_cuprykAuthor Commented:
I added network servie to the folder in vista and still nothing.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.