WSE3.0現在還沒有中文版的可以下載下傳,使用英文版的過程中,難免會遇到各種各樣的錯誤,而面對一堆毫無頭緒的錯誤異常,常常會感到迷茫和無助,我起初就覺得這個架構使用起來真的很難用,有時候一些莫名其妙的錯誤會困擾我半天或者幾天的時間,而一些英文的解釋了解起來似是而非,很難一針見血的獲得哪裡出了問題,我将用幾篇文章将wse所涉及到的錯誤代碼和錯誤消息翻譯成中文,并且根據個人的一點經驗,提出引發錯誤的原因,并總結出解決建議,不是很準确,隻是我所遇到的情況的一個總結而已,也可能有錯誤,大家辯證的看這個。
下面先列出這麼多,好多n多,篇幅太長,分幾次錄入。以後會做成一個文檔,供大家使用
異常名稱
錯誤消息
消息注釋
引發原因
解決建議
BodyEncryptionCheckFailed
Protection requirements not satisfied: body of the message is not encrypted, or is encrypted with a token of an unexpected type
未能滿足保護要求:消息的主體沒有加密或者被一個未知類型的令牌加密
用戶端證書于服務端證書不比對,或者用戶端未設定證書,而服務端要求證書驗證
Cryptography_Xml_CreatedKeyFailed
Failed to create the signing key.
無法建立簽名密鑰
提供的證書沒有簽名的功能
更換證書類型,建立可以用于簽名的證書
Cryptography_Xml_CreateHashAlgorithmFailed
Could not create the hash algorithm object.
無法建立DigestMethod指定的hash算法對象
指定的DigestMethod算法不受指定證書支援
更換證書
Cryptography_Xml_CreateTransformFailed
Could not create the XML transformation identified by the URI {0}.
未能建立标志特定URI的轉換器
Cryptography_Xml_DigestMethodRequired
A DigestMethod must be specified on a Reference before generating XML.
生成XML之前必須在一個引用上指定DigestMethod
Cryptography_Xml_DigestValueRequired
A Reference must contain a DigestValue.
引用上必須包含DigestValue
Cryptography_Xml_EnvelopedSignatureRequiresContext
An XmlDocument context is required for enveloped transforms.
一個XML文檔需要信封轉換器
Cryptography_Xml_InvalidElement
Malformed element {0}.
錯誤節點:{0}
Cryptography_Xml_InvalidReference
Malformed reference element.
錯誤的引用節點:{0}
Cryptography_Xml_InvalidSignatureLength
The length of the signature with a MAC should be less than the hash output length.
帶MAC的簽名長度應該比輸出的hash值長度短
Cryptography_Xml_InvalidSignatureLength2
The length in bits of the signature with a MAC should be a multiple of 8.
帶MAC的加密比特長度應該是8的倍數
Cryptography_Xml_InvalidSignatureTag
The signature element is not valid.
簽名節點非法
Cryptography_Xml_KeyInfoRequired
A KeyInfo element is required to check the signature.
一個KeyInfo節點要求檢查簽名
Cryptography_Xml_LoadKeyFailed
A signing key is not loaded.
簽名密鑰未被加載
Cryptography_Xml_ReferenceElementRequired
At least one Reference element is required.
至少應該有一個引用節點
Cryptography_Xml_SelfReferenceRequiresContext
An XmlDocument context is required to resolve the Reference URI {0}.
一個XML文檔需要處理引用URI:{0}
Cryptography_Xml_SignatureDescriptionNotCreated
SignatureDescription could not be created for the signature algorithm supplied.
簽名描述不能用于建立提供的簽名算法
Cryptography_Xml_SignatureMethodKeyMismatch
The key does not fit the SignatureMethod.
密鑰與簽名方法不比對