我刚刚获取了 nHibernate Profiler 2 的更新以用于开发(通过 Nuget 安装),但是当我NHibernateProfiler.Initialize()
调用该方法时,WebActivator
我会收到如下所示的错误。知道为什么它试图在 IIS Express 文件夹的根目录中创建调试符号以及如何阻止此错误的发生吗?
[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