Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Elevated Permissions Write To Event Log from Event Handler

$
0
0
Hi,

I have written an Event Handler that creates a Document ID when a document is uploaded to a Document Library.  It also writes to the Application Log Event Log when things go wrong.  This works fine when debugging locally on the Test server but when a user tries to upload a document to the document library locally from their machines the code runs but it is unable to write to the Event log on the server.  It gets the following error:

: Cannot open log for source 'CreateDocID.ItemUpdated.Override'. You may not have write access.



Is it a requirement to elevate privileges to write to the event log?


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>