2015-10-26 6 views
5

私はVS 2015とWeb APIを持っています。Nuget経由でNhibernate Profilerをインストールしましたが、プロジェクトは実行されません

私はあなたがlatest buildで試すことができます

Server Error in '/SiteIntegration' Application. 

Failed to compile both on .NET 4.5 and on .NET 4.0. 4.5 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40;NET45' 
Source file 'C:\windows\TEMP\cq1ln2ls.0.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.1.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.2.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder). 4.0 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40' 
Source file 'C:\windows\TEMP\ggvdikxf.0.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.1.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.2.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder) 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Failed to compile both on .NET 4.5 and on .NET 4.0. 4.5 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40;NET45' 
Source file 'C:\windows\TEMP\cq1ln2ls.0.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.1.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.2.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder). 4.0 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40' 
Source file 'C:\windows\TEMP\ggvdikxf.0.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.1.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.2.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder) 

Source Error: 



Line 9:   { 
Line 10:   // Initialize the profiler 
Line 11:   NHibernateProfiler.Initialize(); 
Line 12:    
Line 13:   // You can also use the profiler in an offline manner. 


Source File: C:\Users\compName\Source\Repos\Siteintegration\SiteIntegration\App_Start\NHibernateProfilerBootstrapper.cs Line: 11 

Stack Trace: 



[InvalidOperationException: Failed to compile both on .NET 4.5 and on .NET 4.0. 4.5 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40;NET45' 
Source file 'C:\windows\TEMP\cq1ln2ls.0.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.1.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.2.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder). 4.0 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40' 
Source file 'C:\windows\TEMP\ggvdikxf.0.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.1.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.2.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder)] 
    HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder) +859 

[InvalidOperationException: System.InvalidOperationException: Failed to compile both on .NET 4.5 and on .NET 4.0. 4.5 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40;NET45' 
Source file 'C:\windows\TEMP\cq1ln2ls.0.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.1.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.2.cs' could not be found 
Source file 'C:\windows\TEMP\cq1ln2ls.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder). 4.0 Exception: System.InvalidOperationException: Failed to compile the following symbols: 'NET40' 
Source file 'C:\windows\TEMP\ggvdikxf.0.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.1.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.2.cs' could not be found 
Source file 'C:\windows\TEMP\ggvdikxf.3.cs' could not be found 
No source files specified 

    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileInternally(String fileName, List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String outputFolder, String compilerVersion, Int32 tryCount) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder) 
    at HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder) 
ImageRuntimeVersion: v4.0.30319] 
    HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.CompileAssembly(List`1 sources, HashSet`1 assemblies, HashSet`1 defineSymbols, String assemblyFileName, String outputFolder) +1189 
    HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.RegisterAppenderUsingNHibernateLogger() +387 
    HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.StartNHibernateProfiling() +170 
    HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize(NHibernateAppenderConfiguration configuration) +172 
    SiteIntegration.App_Start.NHibernateProfilerBootstrapper.PreStart() in C:\Users\compName\Source\Repos\Siteintegration\SiteIntegration\App_Start\NHibernateProfilerBootstrapper.cs:11 

[TargetInvocationException: Exception has been thrown by the target of an invocation.] 
    System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 
    System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +260 
    System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +146 
    WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +102 
    WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +434 
    WebActivatorEx.ActivationManager.Run() +100 

[InvalidOperationException: The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..] 
    System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +874 
    System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +169 
    System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +133 
    System.Web.Compilation.BuildManager.ExecutePreAppStart() +176 
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +734 

[HttpException (0x80004005): The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +120 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712 




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.81.0 

答えて

4

NHibernateのサポート担当者は、これを修正する正しい方向に私を指摘しました。

問題は、IISにwindows \ tempフォルダにアクセスする権限がないことでした。

私はアイデンティティ

> IISアプリケーションプール>詳細Settignsに行って、ローカルシステムにそれを変更し(私は自分のPC上で管理者だからです)。それは私のためにそれを固定した。お役に立てれば。

0

今、このエラーが出ますか?

+0

同じ問題があります。最新のビルドをダウンロードしましたが、同じエラーが発生しました。 – dChimento

+0

[email protected]までご連絡ください。 –

+0

こんにちは私はまだ最新のものでこの問題を抱えています。 – transformer

関連する問題