1
URLに漢字が含まれていると問題が発生します。毎回発生しませんが、それがないとき、私は、イベントログに次のエラーを見つける:IIS7エラー:ターゲットマルチバイトコードページにUnicode文字のマッピングがありません。
EventMessage
No mapping for the Unicode character exists in the target multi-byte code page. (Exception from HRESULT: 0x80070459)
EventStackTrace
System.ArgumentOutOfRangeException: No mapping for the Unicode character exists in the target multi-byte code page. (Exception from HRESULT: 0x80070459)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.IIS7WorkerRequest.GetServerVariableInternal(String name)
at System.Web.Hosting.IIS7WorkerRequest.GetServerVariable(String name)
at System.Web.Hosting.IIS7WorkerRequest.ReadRequestHeaders()
at System.Web.Hosting.IIS7WorkerRequest.GetKnownRequestHeader(Int32 index)
at System.Web.HttpRequest.FillInHeadersCollection()
at System.Web.HttpRequest.get_Headers()
例外がネイティブメソッドでスローされたようです。
+1。クッキーに非ASCII文字を含めることは、さまざまなブラウザーやサーバーでは非常に信頼できません。常に7ビット安全な形式(URLエンコードのクッキー値など)にエンコードします。 – bobince
ありがとうございます、リンクは私たちの側から来るかもしれません。私たちはいつもユニコード文字をエンコードするので、私たちはII6 – Heclei