I am getting the following error while using DD4T content delivery in one of my application. I have not provided any dd4t logging provider in my web.config and hence it is trying to write to event log but I am not able to understand where to provide the permissions and to which user.We cannot use log4net for logging due to some organizational constraints.
Codemesh.JuggerNET.JuggerNETFrameworkException: Exception occurred during configuration callback ---> System.InvalidOperationException:
Cannot open log for source 'Content Delivery.NET'. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied ---
End of inner exception stack trace --- at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at
System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category,
EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at
System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type,
Int32 eventID, Int16 category, Byte[] rawData) at
System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type) at
Tridion.ContentDelivery.Web.Jvm.EventLogger.WriteEntry(String entryMessage,
EventLogEntryType type) at
Tridion.ContentDelivery.Web.Jvm.ConfigurationHook.ConfigMethod(IJvmLoader loader, Int32
when) at Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level) --- End of inner exception stack trace --- at Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level) at Codemesh.JuggerNET.JvmLoader.GetJvmLoader() at Codemesh.JuggerNET.JavaClass.init() at Codemesh.JuggerNET.JavaClass.get_JObject() at Codemesh.JuggerNET.JavaMethod.init() at Codemesh.JuggerNET.JavaMethod.get_MethodPtr() at
Codemesh.JuggerNET.JavaMethod.get_Handle() at
Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo) at Com.Tridion.Broker.Querying.Query..ctor() at Tridion.ContentDelivery.DynamicContent.Query.Query..ctor() at
DD4T.Providers.SDLTridion2011sp1.TridionPageProvider.GetContentByUrl(String Url) at
DD4T.Factories.PageFactory.TryFindPage(String url, IPage& page) at