⟩ Suppose You develop an ASP.NET Web applicationthat writes to an event log named EventLog1. All managers in Company will run this application.During a exam on a manager?s client computer, the application fails in the following codesegment. (Line numbers are includes for reference only.)1. Dim EventLog1 As New EventLog2. If Not EventLog.SourceExists(?CompanyWebApp?) Then3. EventLog.CreateEventSource(?CompanyWebApp?, ?Application?)4. End If5. EventLog1.Source = ?CompanyWebApp?6. EventLog1.WriteEntry(?The event occurred.?)You need to ensure that event data is written to EventLog1. You want to achieve this goal withoutgranting unnecessary permissions.What should you do?A. Insert the following code into the application.Dim eventLogDir As StringeventLogDir = ?C%windir?system32configAppEvent.Evt?Dim FilePermission As _New FileOPermission(FileIOPermissionAccess.AllAcces, eventLogDir)FilePermission.Assert()B. Replace line 6 of the code segment with the following line of code.EventLog1.WriteEntry
E. Create the event log source in the installer class of the application.