您好,所以我一直试图让我的网站在单声道(在 ubuntu 服务器上)上运行,并且我几乎完全按照这些教程进行操作:
但是,当我的目录不是空白时,fastcgi 日志会显示:
Notice Beginning to receive records on connection.
Error Failed to process connection. Reason: Exception has been thrown by the target of an invocation.
我不太确定这意味着什么,根据我的操作,我可能会收到另一个错误,告诉我找不到资源:
无法找到该资源。
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
请求的 URL:/Default.aspx/ 版本信息:Mono 运行时版本:2.10.8(tarball Thu Aug 16 23:46:03 UTC 2012)ASP.NET 版本:4.0.30319.1
如果我应该提供更多信息,请告诉我。
编辑:
我现在收到 nginx 网关错误。
我的 nginx 配置文件如下所示:
server {
listen 2194;
server_name localhost;
access_log $HOME/WWW/nginx.log;
location / {
root $HOME/WWW/dev/;
index index.html index.html default.aspx Default.aspx Index.cshtml;
fastcgi_index Views/Home/;
fastcgi_pass 127.0.0.1:8000;
include /etc/nginx/fastcgi_params;
}
}
使用 xsp4 运行整个过程,我发现了“调用目标引发了异常”。
处理异常类型 TargetInvocationException 消息是异常已被调用的目标抛出。IsTerminating 设置为 True System.Reflection.TargetInvocationException:调用目标已引发异常。
服务器堆栈跟踪:在 System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] 参数,
System.Globalization.CultureInfo 文化) [0x00000] in :0 在 System .Reflection.MethodBase.Invoke (System.Object obj, System.Object[] 参数) [0x00000] in :0
在 System.Runtime.Serialization.ObjectRecord.LoadData (System.Runtime.Serialization.ObjectManager 管理器, ISurrogateSelector 选择器, StreamingContext 上下文) [0x00000] 在 System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000] 在 System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader 阅读器) [0x00000] 处的 [0x00000]在 :0
在 System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers) [0x00000]在 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler 处理程序) [0x00000] 处的 0 处,在 System.Runtime.Serialization.Formatters 处的 0 处.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in :0 at System.Runtime.Remoting.RemotingServices.DeserializeCallData (System.Byte [] array) [0x00000] in :0 at (wrapper xdomain-dispatch ) System.AppDomain:DoCallBack (object,byte[]&,byte[]&)[0] 处重新抛出异常:---> System.ArgumentException:无法绑定到方法“SetHostingEnvironment”。在 System.Delegate.GetCandidateMethod(System.Type 类型,System.Type 目标,System.String 方法,BindingFlags bflags,布尔 ignoreCase,布尔 throwOnBindFailure)[0x00000] 在 System.Delegate.CreateDelegate(System.Type 类型,System .Type 目标,System.String 方法,Boolean ignoreCase,Boolean throwOnBindFailure) [0x00000] 在 System.Delegate.CreateDelegate (System.Type 类型,System.Type 目标,System.String 方法) [0x00000] in :0 at System.DelegateSerializationHolder+DelegateEntry.DeserializeDelegate (System.Runtime.Serialization.SerializationInfo info) [0x00000] in :0 在 System.DelegateSerializationHolder..ctor (System.Runtime.Serialization.SerializationInfo info,
在 (wrapper xdomain-invoke) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate) 在 (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate) 在 System.Web.Hosting.ApplicationHost.CreateApplicationHost (System .Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in :0 at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource webSource) [0x00000] in :0 at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in :0 at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] 在:0