--
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.
--You received this message because you are subscribed to the Google Groups "nhprof" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nhprof/-/TWekw3uj16EJ.
[InvalidOperationException: Source file 'C:\Windows\TEMP\co2a3wci.0.cs' could not be found] HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.Compile(String fileName, String[] sources, IEnumerable`1 assembliesToReference) +1463 HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(IEnumerable`1 sourcesResources, IEnumerable`1 assembliesToReference, String assemblyName) +118 HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.RegisterAppenderUsingNHibernateLogger() +399 HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.WrapLogger() +138 HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.StartNHibernateProfiling() +183 HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(NHibernateAppenderConfiguration configuration) +74 HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize() +73 MvcApplication1.MvcApplication.Application_Start() in D:\dev\MvcApplication1\MvcApplication1\Global.asax.cs:40 [HttpException (0x80004005): Source file 'C:\Windows\TEMP\co2a3wci.0.cs' could not be found] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4051717 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375 [HttpException (0x80004005): Source file 'C:\Windows\TEMP\co2a3wci.0.cs' could not be found] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11642112 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4865877
Which upon closer inspection isn't exactly the same error as I was getting at the office, as I was getting the unable to find csc.exe error. The primary difference there is that it was on Windows Server 2008 R2 and the IIS app pool was running under a domain account which would not have had explicit access to anything except the actual website's folder.Unfortunately I don't have the means to try to reproduce that for you until next week.
--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nhprof/-/txRfBxWzqhcJ.
Did this ever get resolved? I just tried to use nhprof, got this error, searched, and saw that in fact I had the same thing a year ago when i tried last time. and here i am again.Totally different machine, exact same issue.BIll.
To unsubscribe from this group, send email to nhprof+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "nhprof" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nhprof/-/OI0FiJU2kSUJ.
Hi, we've found the same error in several Win2008R2 machines with IIS7, Visual Studio 2010 and SharePoint 2010. At some point, the Initialize call starts giving the "Compiler executable file csc.exe cannot be found." error. Even one of those machines is a clean installation. We've tried to repair the .NET Framework but it made no difference. Apparently the Framework is ok checking it with a tool like http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspxIf anyone finds a workaround, please post. Thank you!
It is usually fixed by installing the SDK again
Did this ever get resolved? I just tried to use nhprof, got this error, searched, and saw that in fact I had the same thing a year ago when i tried last time. and here i am again.Totally different machine, exact same issue.
BIll.
Okay, I know what is causing it, and it is a permission issue.
During the init process, we generate a dll at runtime, and we need permissions to write to the temp directory. Can you grant those?
Which upon closer inspection isn't exactly the same error as I was getting at the office, as I was getting the unable to find csc.exe error. The primary difference there is that it was on Windows Server 2008 R2 and the IIS app pool was running under a domain account which would not have had explicit access to anything except the actual website's folder.Unfortunately I don't have the means to try to reproduce that for you until next week.--To view this discussion on the web visit https://groups.google.com/d/msg/nhprof/-/txRfBxWzqhcJ.
You received this message because you are subscribed to the Google Groups "nhprof" group.
To unsubscribe from this group, send email to nhprof+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/nhprof/-/OI0FiJU2kSUJ.--
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.
--
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.
Visit this group at http://groups.google.com/group/nhprof?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
I have the same issue on Windows Server 2008 R2, .NET 4.0. I noticed the path to the csc.exe executable is wrong, the file name occurs twice. This is what I saw when running an ASP.NET MVC app with HibernatingRhinos.Profiler.Appender.dll version 2132:
[InvalidOperationException: net4exception: System.InvalidOperationException: Compiler executable file C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe\csc.exe cannot be found.
--
You received this message because you are subscribed to the Google Groups "nhprof" group.
I still have the same issue with latest version 2135 on Windows Server 2008 R2 when initializing NHibernateProfiler from Sharepoint 2010. It uses .NET Framework 3.5.Trying a console application it works fine if i set .NET Framework 4 as target framework but the same error if .NET Framework 3.5 is specified.We have a collegue from other team who is running NHProfiler build 951 and it's working with 3.5.
Exception:net4exception: System.InvalidOperationException: Compiler executable file csc.exe cannot be found.at System.CodeDom.Compiler.RedistVersionInfo.GetCompilerPath(IDictionary`2 provOptions, String compilerExecutable)at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion)at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder)
Best Regards,
Hibernating Rhinos Ltd
Fitzchak Yitzchaki l Senior Software Engineer l Mobile:+972-58-345-9538
Again issue with csc ????
--
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 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.