在ubuntu 14.04上构建Web应用程序

时间:2016-04-19 23:49:39

标签: asp.net-core ubuntu-14.04 asp.net-core-mvc

按照本教程,我试图在我的ubuntu服务器上添加一个sqlite数据库:

  

http://ef.readthedocs.org/en/latest/platforms/coreclr/getting-started-linux.html#install-sqlite

但是我在

上遇到了错误
  

要确保文件正确,可以通过运行dnu build --quiet

在命令行上编译项目。

一部分。

运行命令(dnu build --quiet)后,我收到以下错误:

    Building KeepItSolved for DNXCore,Version=v5.0
System.UnauthorizedAccessException: Access to the path '/var/www/kis/src/KeepItSolved/bin/Debug/dnxcore50' is denied.
   at System.IO.UnixFileSystem.CreateDirectory(String fullPath)
   at System.IO.Directory.CreateDirectory(String path)
   at Microsoft.Dnx.Compilation.CSharp.RoslynProjectReference.EmitAssembly(String outputPath)
   at Microsoft.Dnx.Tooling.BuildContext.Build(List`1 diagnostics)
   at Microsoft.Dnx.Tooling.BuildManager.BuildConfiguration(String baseOutputPath, IEnumerable`1 frameworks, List`1 allDiagnostics, String configuration)
   at Microsoft.Dnx.Tooling.BuildManager.BuildInternal(String projectPath)
   at Microsoft.Dnx.Tooling.BuildManager.Build()
   at Microsoft.Dnx.Tooling.BuildConsoleCommand.<>c__DisplayClass0_0.<Register>b__1()
   at Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(String[] args)
   at Microsoft.Dnx.Tooling.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)
   at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, String appBase, FrameworkName targetFramework)
   at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, BootstrapperContext bootstrapperContext)
   at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, BootstrapperContext bootstrapperContext)

我尝试访问

  

&#39; /无功/网络/ KIS / SRC / KeepItSolved / bin中/调试/ dnxcore50&#39;

但它不存在(既不在我的服务器上,也不在我的本地机器上。虽然我的本地所有东西都很好)。这是指向我的存储库的链接:https://github.com/ziombo/KeepItSolved/

0 个答案:

没有答案