Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Certifications Interviews:AFMCAIIMS ExamCCDA CertificationCCIE CertificationCCIP CertificationCCSP CertificationCertificationsCheck Point CertificationCISCO CertificationCIW CertificationEngineering Entrance ExamsEntrance ExamsGATE ExamIBM CertificationICET ExamIIT JEEISTQB CertificationManagement Entrance ExamsMATMCDBA CertificationMCSD.NET - 70-089MCSD.NET - 70-300MCSD.NET - 70-306 ExamMCSD.NET - 70-310 ExamMCSD.NET - 70-315 ExamMCSD.NET - 70-316 ExamMCSD.NET - 70-320 ExamMCSD.NET - 70-330 ExamMCSD.NET - 70-340 ExamMCTS .Net CertificationMedical Science Entrance ExamsMicrosoft CertificationMSCE 2003 CertificationNovell CertificationNovell CLE 9 CertificationNovell CLP CertificationNovell CNA CertificationNovell CNE CertificationNovell MCNE CertificationOCP 9i DBA CertificationOPENMAT ExamOracle Application DeveloperOracle CertificationPMI CertificationPost Graduation Entrance ExamsRed Hat CertificationS/W Quality AssuranceSun CertificationSybase CertificationTesting Certification
Copyright © 2018. All Rights Reserved
MCSD.NET - 70-330 Exam Interview Question:
Suppose You develop an ASP.NET Web application
that 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 code
segment. (Line numbers are includes for reference only.)
1. Dim EventLog1 As New EventLog
2. If Not EventLog.SourceExists(?CompanyWebApp?) Then
3. EventLog.CreateEventSource(?CompanyWebApp?, ?Application?)
4. End If
5. 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 without
granting unnecessary permissions.
What should you do?
A. Insert the following code into the application.
Dim eventLogDir As String
eventLogDir = ?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(?The event occurred?,?EventLogWriter?)
C. Grant the managers the Full Control permission for the event log file.
D. Add the aspnet_wp account to the Administrators group.
E. Create the event log source in the installer class of the application.
Submitted by: AdministratorE. Create the event log source in the installer class of the application.
Submitted by: Administrator
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.