こんにちは、私は自分のウェブサイトをモノ (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 バインダー、System.Object[] パラメーター、
System.Globalization.CultureInfo カルチャ) [0x00000] in :0 at System .Reflection.MethodBase.Invoke (System.Object obj、System.Object[] パラメーター) [0x00000] in :0
at System.Runtime.Serialization.ObjectRecord.LoadData (System.Runtime.Serialization.ObjectManager マネージャー、ISurrogateSelector セレクター、StreamingContext コンテキスト) ) [0x00000] in :0 at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00000] in :0 at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject (System.IO.BinaryReader リーダー) [0x00000] :0 で
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph (BinaryElement elem、System.IO.BinaryReader リーダー、ブール値の readHeaders、System.Object& 結果、System.Runtime.Remoting.Messaging.Header[]& ヘッダー) で [0x00000] in :0 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize (System.IO.Stream serializationStream、System.Runtime.Remoting.Messaging.HeaderHandler ハンドラ) [0x00000] in :0 at System.Runtime.Serialization.Formatters .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 (オブジェクト、バイト[]&、バイト[]&)[0] で例外が再スローされました: ---> System.ArgumentException: メソッド 'SetHostingEnvironment' にバインドできませんでした。System.Delegate.GetCandidateMethod (System.Type 型、System.Type ターゲット、System.String メソッド、BindingFlags bflags、ブール値の ignoreCase、ブール値の throwOnBindFailure) [0x00000] で:0 で System.Delegate.CreateDelegate (System.Type 型、システム.Type ターゲット、System.String メソッド、Boolean ignoreCase、Boolean throwOnBindFailure) [0x00000] in :0 at System.Delegate.CreateDelegate (System.Type タイプ、System.Type ターゲット、System.String メソッド) [0x00000] in :0 at System.DelegateSerializationHolder+DelegateEntry.DeserializeDelegate (System.Runtime.Serialization.SerializationInfo 情報) [0x00000] in :0 at System.DelegateSerializationHolder..ctor (System.Runtime.Serialization.SerializationInfo 情報、
(ラッパー xdomain-invoke) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate) at (ラッパー remoting-invoke-with-check) System.AppDomain:DoCallBack (System.CrossAppDomainDelegate) at System.Web.Hosting.ApplicationHost.CreateApplicationHost (システム.Type hostType, System.String virtualDir, System.String physicalDir) [0x00000] in :0 at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer サーバー、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] in :0