I'm using NHibernate 2.1.0.4000.
System.NullReferenceException was unhandled
Message="Source resource is missing: HibernatingRhinos.Profiler.Appender.NHibernate.Log4Net.NHibernateProfilerAppender.cs"
Source="HibernatingRhinos.Profiler.Appender"
StackTrace:
at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.GetResources(IEnumerable`1 sourcesResources)
at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.RegisterAppenderUsingLog4Net()
at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.WrapLogger()
at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.StartNHibernateProfiling()
at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(NHibernateAppenderConfiguration configuration)
at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize()
at NHProfQueryPlanTest.Program.Main(String[] args) in C:\VSProjects\NHProfQueryPlanTest\NHProfQueryPlanTest\Program.cs:line 14
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
I've tried referencing just the HibernatingRhinos.Profiler.Appender.dll assembly and tried also referencing HibernatingRhinos.Profiler.Appender.NHibernateLog4Net.dll. Neither combination worked
it sort of looks like it should be:
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="NHProfAppender"
type="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender,
HibernatingRhinos.Profiler.Appender.NHibernateLog4Net">
<sink value="tcp://127.0.0.1:22897" />
</appender>
<logger name="HibernatingRhinos.Profiler.Appender.NHibernate.NHProfAppender.Setup">
<appender-ref ref="NHProfAppender"/>
</logger>
</log4net>