Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 在Mac中运行ASP Web应用程序时出错_Asp.net_Macos_Libc_Dnx_Libuv - Fatal编程技术网

Asp.net 在Mac中运行ASP Web应用程序时出错

Asp.net 在Mac中运行ASP Web应用程序时出错,asp.net,macos,libc,dnx,libuv,Asp.net,Macos,Libc,Dnx,Libuv,我已经在Mac OS中创建了Web应用程序,并且能够构建它。 在dnx web上,我收到以下错误: System.DllNotFoundException: libc.dylib at (wrapper managed-to-native) System.IO.KeventWatcher:kqueue () at System.IO.KeventWatcher.GetInstance (IFileWatcher& watcher) <0x105a29310 + 0x000f

我已经在Mac OS中创建了Web应用程序,并且能够构建它。 在dnx web上,我收到以下错误:

System.DllNotFoundException: libc.dylib
  at (wrapper managed-to-native) System.IO.KeventWatcher:kqueue ()
  at System.IO.KeventWatcher.GetInstance (IFileWatcher& watcher) <0x105a29310 + 0x000f3> in <filename unknown>:0 
  at System.IO.FileSystemWatcher.InitWatcher () <0x105a28fa0 + 0x0012c> in <filename unknown>:0 
  at System.IO.FileSystemWatcher..ctor (System.String path, System.String filter) <0x105a28d00 + 0x00114> in <filename unknown>:0 
  at System.IO.FileSystemWatcher..ctor (System.String path) <0x105a28cc0 + 0x00023> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:.ctor (string)
  at Microsoft.AspNet.FileProviders.PhysicalFilesWatcher..ctor (System.String root) <0x105a285b0 + 0x00154> in <filename unknown>:0 
  at Microsoft.AspNet.FileProviders.PhysicalFileProvider..ctor (System.String root) <0x105a282d0 + 0x000e4> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.HostingEnvironmentExtensions.Initialize (IHostingEnvironment hostingEnvironment, System.String applicationBasePath, IConfiguration config) <0x105a27f20 + 0x001ea> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.WebHostBuilder.Build () <0x105a1a860 + 0x000b8> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.WebApplication.Run (System.Type startupType, System.String[] args) <0x105560990 + 0x00216> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.WebApplication.Run (System.String[] args) <0x10555fef0 + 0x0001a> in <filename unknown>:0 
  at Microsoft.AspNet.Hosting.Program.Main (System.String[] args) <0x10555fec0 + 0x00014> in <filename unknown>:0 
  at Microsoft.AspNet.Server.Kestrel.Program.Main (System.String[] args) <0x10555fc90 + 0x000b5> in <filename unknown>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x1050027a0 + 0x000b7> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in <filename unknown>:line 0
   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute (System.Reflection.Assembly assembly, System.String[] args, IServiceProvider serviceProvider) in <filename unknown>:line 0
   at Microsoft.Dnx.ApplicationHost.Program+<>c__DisplayClass3_0.<ExecuteMain>b__0 () in <filename unknown>:line 0
   at System.Threading.Tasks.Task`1[TResult].InnerInvoke () in <filename unknown>:line 0
   at System.Threading.Tasks.Task.Execute () in <filename unknown>:line 0
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
   at System.IO.FileSystemWatcher.Stop () in <filename unknown>:line 0
   at System.IO.FileSystemWatcher.Finalize () in <filename unknown>:line 0
System.DllNotFoundException:libc.dylib
at(包装器管理到本机)System.IO.KeventWatcher:kqueue()
位于0中的System.IO.KeventWatcher.GetInstance(IFileWatcher&watcher)
位于:0中的System.IO.FileSystemWatcher.InitWatcher()处
位于:0中的System.IO.FileSystemWatcher..ctor(System.String路径,System.String筛选器)
位于:0中的System.IO.FileSystemWatcher..ctor(System.String路径)
在(带检查的包装器远程处理调用)System.IO.FileSystemWatcher:.ctor(字符串)
在Microsoft.AspNet.FileProviders.PhysicalFileWatcher..ctor(System.String根目录)中:0
位于Microsoft.AspNet.FileProviders.PhysicalFileProvider..ctor(System.String root)中的:0
在Microsoft.AspNet.Hosting.HostingEnvironmentExtensions.Initialize(IHostingEnvironment hostingEnvironment,System.String applicationBasePath,IConfiguration config)中:0
在Microsoft.AspNet.Hosting.WebHostBuilder.Build()中:0
在Microsoft.AspNet.Hosting.WebApplication.Run(System.Type startupType,System.String[]args)中:0
在Microsoft.AspNet.Hosting.WebApplication.Run(System.String[]args)中:0
位于Microsoft.AspNet.Hosting.Program.Main(System.String[]args)中的:0
位于Microsoft.AspNet.Server.Kestrel.Program.Main(System.String[]args)中的:0
at(包装器管理为本机)System.Reflection.monmethod:InternalInvoke(System.Reflection.monmethod,object,object[],System.Exception&)
位于:0中的System.Reflection.MonMethod.Invoke(System.Object obj、BindingFlags invokeAttr、System.Reflection.Binder Binder、System.Object[]参数、System.Globalization.CultureInfo区域性)
---来自引发异常的上一个位置的堆栈结束跟踪---
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中:第0行
在Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(System.Reflection.Assembly,System.String[]args,IServiceProvider serviceProvider)的以下位置执行:第0行
在Microsoft.Dnx.ApplicationHost.Program+c__显示Class3_0.b__0()中:第0行
第0行中的System.Threading.Tasks.Task`1[TResult].InnerInvoke()处
在第0行中的System.Threading.Tasks.Task.Execute()处
未处理的异常:
System.NullReferenceException:对象引用未设置为对象的实例
第0行中的System.IO.FileSystemWatcher.Stop()处
第0行中的System.IO.FileSystemWatcher.Finalize()处
我在下面的问题中尝试了这个建议 并设置DYLD\u回退\u库\u路径


但无法解决问题。任何解决方法。

在终端中,echo$DYLD\u FALLBACK\u LIBRARY\u PATH的输出是什么?l'l'l output-~/lib:/usr/local/lib:/usr/local/lib:/Users/labuser/.dnx/packages您的路径中似乎缺少了
/usr/lib
。@I'l'l我在哪里错过了/usr/lib?它不在输出结果中!您有
~/lib
/usr/local/lib
(两次),
/lib
,还有你的
libuv
目录…在终端中,
echo$DYLD\u FALLBACK\u LIBRARY\u PATH的输出是什么?
l'l输出-~/lib:/usr/local/lib:/lib:/usr/local/lib:/Users/labuser/.dnx/packages看起来你的路径中缺少了
/usr/lib
。@I'l'l我在哪里错过了/usr/lib?输出结果中没有!你有
~/lib
/usr/local/lib
(两次),
/lib
,还有你的
libuv
目录。。。