InvalidOperationException when calling NHibernateProfiler.Initialize()

18 views
Skip to first unread message

Earl Moore

unread,
Aug 15, 2019, 4:15:10 PM8/15/19
to nhprof
When calling Initialize() from my WPF application I get an InvalidOperationException. See below:

System.InvalidOperationException

  HResult=0x80131509

  Message=Source resource is missing: NHibernateProfilerAppender.cs

  Source=HibernatingRhinos.Profiler.Appender

  StackTrace:

   at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.GetResource(String namespacePrefix, String sourceFile)

   at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.<>c__DisplayClass7_0.<CompileInternal>b__0(String sourceFile)

   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()

   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)

   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)

   at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternal(String fileName, String namespacePrefix, List`1 sources, String[] symbols, HashSet`1 assemblies, String outputFolder, Int32 tryCount)

   at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(String namespacePrefix, List`1 sources, String[] symbols, HashSet`1 assemblies, String assemblyFileName, String outputFolder)

   at HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.GenerateAssemblyForCustomVersionOfLog4Net(String outputFolder)

   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 MyNamespace.App..ctor() in C:\svn\trunk\src\MyApplication\App.xaml.cs:line 20

   at MyNamespace.App.Main()


I've tried with build 5036 downloaded from the site and from nuget.

Oren Eini (Ayende Rahien)

unread,
Aug 18, 2019, 10:30:05 AM8/18/19
to nhprof
Can you send us a sample project? That should't be the case

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhprof+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nhprof/a7b39a0e-1a19-49f7-ba30-839dc36d39c4%40googlegroups.com.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
Reply all
Reply to author
Forward
0 new messages