What should you do?

You are an enterprise application developer. You develop a Web application by using ASP.NET that runs on Microsoft Windows Server 2003. The ASP.NET application fails to save trace and log data in an event log. You discover that the application has no write access to the registry. You need to ensure that the trace and log information is saved to the event log. You also need to minimize the risk that is associated with the solution.
What should you do?

You are an enterprise application developer. You develop a Web application by using ASP.NET that runs on Microsoft Windows Server 2003. The ASP.NET application fails to save trace and log data in an event log. You discover that the application has no write access to the registry. You need to ensure that the trace and log information is saved to the event log. You also need to minimize the risk that is associated with the solution.
What should you do?

A.
Grant the write access to the registry for the Network Service account.

B.
Add the SystemConfigurationInstall DWORD key in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application hive.

C.
Register the event log source that is created by the System.Diagnostics.EventLogInstaller class in the Application_OnStart event.

D.
Add a class that inherits from the System.Configuration.Install.Installer class. The System.Configuration.Install.Installer class registers the event log source that is created by the System.Diagnostics.EventLogInstaller class. Then, run the installutil.exe [assemblyName] command in the command prompt.



Leave a Reply 0

Your email address will not be published. Required fields are marked *