Fix Error: Msg 25602, Level 17, State 22, Line 10 The target, “39BBBE93EBBD.package0.event_file”, encountered a configuration error during initialization. Object cannot be added to the event session. The operating system returned error 5: ‘Access is denied. ‘ while creating the file ‘C:\longrunning.xel’.

you may encountered this error message while starting the Extended events session / or while Extended events session configuration time.

Cause: if  SQL service account does not  have access to file system where the events data is storing,  you will encounter this error message.