I just grabbed the update for nHibernate Profiler 2 for use in development (installed via Nuget), but when ever the NHibernateProfiler.Initialize()
method is called by WebActivator
I get the error as shown below. Any idea why it's trying to create debugging symbols in the root of the IIS Express folder and how to stop this error from happening?
[InvalidOperationException: Unexpected error creating debug information file 'c:\Program Files (x86)\IIS Express\HibernatingRhinos.Profiler.Appender.NHibernate3Logger.PDB' -- 'c:\Program Files (x86)\IIS Express\HibernatingRhinos.Profiler.Appender.NHibernate3Logger.pdb: Access is denied.]
HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.Compile(String fileName, String[] sources, List`1 assembliesToReference) +1139
HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(IEnumerable`1 sourcesResources, IEnumerable`1 assembliesToReference, String assemblyName) +105
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.RegisterAppenderUsingNHibernateLogger() +318
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.WrapLogger() +54
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.StartNHibernateProfiling() +129
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(NHibernateAppenderConfiguration configuration) +45
HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize() +53
Data.NHibernateProfilerBootstrapper.PreStart() in c:\Development\[Project]\Data\App_Start\NHibernateProfilerBootstrapper.cs:13
It appears to have been fixed in the most recent version. Update nHibernate Profiler and the problem will be resolved. (at the time of this writing that's 2.0.2077.0)