私の ServiceStackクライアントアプリケーションでは、SmartAssembly または ILRepack でパッケージ化するまでは問題ありませんでした。3 つの DLL があります: ( ServiceStack.Client.dll、ServiceStack.Interfaces.dll、ServiceStack.Text.dll ) 圧縮すると、暗号化\難読化オプションを使用するか、1 つの EXE にパックするかに関係なく、アプリケーションがクラッシュします。私のアプリは .NET 4.0 をターゲットにしています (Win XP をサポートしたい)。例外のスタック トレースは次のとおりです。
ServiceStack.LicenseException: Unauthorized access request of a licensed feature. Type: 'AccessToken', Assembly: 'ClientTester.exe', 'My EXE path'
ServiceStack.Net40PclExport.VerifyInAssembly(Type accessType, ICollection`1 assemblyNames)
ServiceStack.LicenseUtils.RequestAccess(Object accessToken, LicenseFeature srcFeature, LicenseFeature requestedAccess)
ServiceStack.JsonServiceClient.ToJson[T](T o)
ServiceStack.EncryptedServiceClient.CreateEncryptedMessage(Object request, String operationName, Byte[] cryptKey, Byte[] authKey, Byte[] iv, String verb)
ServiceStack.EncryptedServiceClient.Send[TResponse](String httpMethod, Object request)
パッチがブロックされている、または条件が無効であるとインストーラーが言うため、パッチをインストールできません。さらに、このパッチが役立つかどうかもわかりません。どんなアイデアでも大歓迎です。
補足: 前述のもの以外の ServiceStack DLL を使用する別の ServiceStack アプリケーションは、パックされていても問題なく動作します。