Could not load file or assembly 'NHibernate'

835 views
Skip to first unread message

BobTodd

unread,
Sep 22, 2011, 4:29:24 AM9/22/11
to nhprof
Not sure what's happened here. This had been working- nhprof
connecting to my sharepoint app no probs. Now its this error.

All dlls are in the gac. We're using NH 3.2.0.4000. Any ideas?


[FileNotFoundException: Could not load file or assembly 'NHibernate'
or one of its dependencies. The system cannot find the file
specified.]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +416
System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +166
System.Reflection.Assembly.Load(String assemblyString) +35

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.GetAssembly(String
assemblyName) +689

[InvalidOperationException: The profiler was unable to resolve the
NHibernate assembly. If you have merged NHibernate, be sure to resolve
the assembly using AppDomain.CurrentDomain.AssemblyResolve so the
profiler can find it.]

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.GetAssembly(String
assemblyName) +854

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.GetLoggerTypeBasedOnNHibernateAssembly()
+76

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.get_LoggerType()
+105

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.WrapLogger()
+101

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.StartNHibernateProfiling()
+252

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(NHibernateAppenderConfiguration
configuration) +75

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize()
+67

eServices.SharePoint.AppFabric.eServicesSPHttpApplication.Application_Start(Object
sender, EventArgs e) +47

BobTodd

unread,
Sep 22, 2011, 5:11:22 AM9/22/11
to nhprof
Needed to tell the app how to find NHibernate in the gac via
web.config...

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="NHibernate" fullName="NHibernate,
Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4" /

Ayende Rahien

unread,
Sep 22, 2011, 5:32:55 AM9/22/11
to nhp...@googlegroups.com
Glad that this was resolved.

--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To post to this group, send email to nhp...@googlegroups.com.
To unsubscribe from this group, send email to nhprof+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhprof?hl=en.


Reply all
Reply to author
Forward
0 new messages