[object Object]

I was running the following post-build scripts in VS2013…

$(FrameworkDir)\installutil.exe /u "$(TargetPath)"
$(FrameworkDir)\installutil.exe "$(TargetPath)"

and was getting this error…

"System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security."

Turns out I just needed to open VS as admin. Easy solution that took too long to figure out. Hope this helps.

Share