Could not load file or assembly 'HibernatingRhinos.Profiler.Appender"

402 views
Skip to first unread message

Paul Clancy

unread,
Apr 14, 2018, 6:33:54 AM4/14/18
to nhprof

Hopefully a simple question... 

I'm on Windows, using latest unstable build NHProf 5.0.5018 on NETCORE2.0 SDK 2.1.104  (.NET Core 4.6.26212.01 X64) and VS2017 for a MVC app running on Kestre and using NHibernate 5.1.1 with FluentNhibernate (built from master)

I've tried putting the HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(); code in Program.cs and also in ConfigureServices of startup.cs but I only get this message:


An error occurred while starting the application.

FileNotFoundException: Could not load file or assembly 'HibernatingRhinos.Profiler.Appender, Version=5.0.0.0, Culture=neutral, PublicKeyToken=0774796e73ebf640'. The system cannot find the file specified.

Eventsense.Startup.ConfigureServices(IServiceCollection services)

  • FileNotFoundException: Could not load file or assembly 'HibernatingRhinos.Profiler.Appender, Version=5.0.0.0, Culture=neutral, PublicKeyToken=0774796e73ebf640'. The system cannot find the file specified.



I've added the profiler ref to the project and confirmed it is copied to the /bin folder.  I've also tried using procmon to see where it's trying to load from but I can't see any requests at the OS level for HibernatingRhinos.Profiler.Appender.dll

Any Ideas or is this not a supported config?

TIA







Oren Eini (Ayende Rahien)

unread,
Apr 15, 2018, 1:44:57 AM4/15/18
to nhprof
Are you sure that you added the .NET Core dll and not the full .net one?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to nhp...@googlegroups.com.
Visit this group at https://groups.google.com/group/nhprof.
For more options, visit https://groups.google.com/d/optout.

Paul Clancy

unread,
Apr 15, 2018, 8:11:16 AM4/15/18
to nhp...@googlegroups.com
I used this one:

C:\Utils\NHibernate.Profiler-v5.0-Build-5018-alpha\Appender\netcoreapp2.0\HibernatingRhinos.Profiler.Appender.dll

Paul Clancy

unread,
Apr 15, 2018, 8:26:09 AM4/15/18
to nhp...@googlegroups.com
OK, found the issue..

It looks like there is a dependency on Microsoft.CodeAnalysis.  Once I referenced that it all started to work :)





On 15 April 2018 at 06:44, Oren Eini (Ayende Rahien) <aye...@ayende.com> wrote:

Fitzchak Yitzchaki

unread,
Apr 15, 2018, 8:28:06 AM4/15/18
to nhp...@googlegroups.com
Installing using nuget should reference the dependencies automatically:

Best Regards,

Hibernating Rhinos Ltd  cid:image001.png@01CF95E2.8ED1B7D0

Fitzchak Yitzchaki l Senior Software Engineer Mobile:+972-58-345-9538

Reply all
Reply to author
Forward
0 new messages