IronZIP トラブルシューティング Web.configでのライセンスキーの設定 web.config での IronOCR ライセンス設定 カーティス・チャウ 更新日:2025年6月1日 IronZIP をダウンロード NuGet ダウンロード 無料トライアル LLM向けのコピー LLM向けのコピー LLM 用の Markdown としてページをコピーする ChatGPTで開く このページについてChatGPTに質問する ジェミニで開く このページについてGeminiに問い合わせる Grokで開く このページについてGrokに質問する 困惑の中で開く このページについてPerplexityに問い合わせる 共有する Facebook で共有 Xでシェア(Twitter) LinkedIn で共有 URLをコピー 記事をメールで送る This article was translated from English: Does it need improvement? Translated View the article in English この問題は、 IronZIPバージョン2024.3.3で解決されました。 Exception: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronZip must be licensed for development. Exception: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronZip must be licensed for development. SHELL 古い IronZIP バージョン、特に 2024.3.3 より前にリリースされたものには、以下のライセンス問題があります: ASP.NETプロジェクト .NET Frameworkバージョン >= 4.6.2 Web.config ファイルに保存されたキーは、製品によって取得および使用されません。 回避策 この問題に対処するには、コード内でConfigurationManagerを使用して Web.config ファイルからライセンス キーを取得し、それを License.LicenseKey プロパティに適用することをお勧めします。 例: <configuration> ... <appSettings> <add key="IronZip.LicenseKey" value="IRONZIP.MYLICENSE.KEY.1EF01"/> </appSettings> ... </configuration> <configuration> ... <appSettings> <add key="IronZip.LicenseKey" value="IRONZIP.MYLICENSE.KEY.1EF01"/> </appSettings> ... </configuration> XML 上記の XML ファイルを使用することで、ConfigurationManager を利用してライセンスキーの値を取得し、IronZip.License.LicenseKey プロパティに渡すことができます。 using System; using System.Configuration; class Program { static void Main() { // Retrieve the license key from the web.config appSettings string licenseKey = ConfigurationManager.AppSettings["IronZip.LicenseKey"]; // Apply the license key to IronZip IronZip.License.LicenseKey = licenseKey; // Verify that the license key is set properly Console.WriteLine("License key applied successfully."); } } using System; using System.Configuration; class Program { static void Main() { // Retrieve the license key from the web.config appSettings string licenseKey = ConfigurationManager.AppSettings["IronZip.LicenseKey"]; // Apply the license key to IronZip IronZip.License.LicenseKey = licenseKey; // Verify that the license key is set properly Console.WriteLine("License key applied successfully."); } } Imports System Imports System.Configuration Friend Class Program Shared Sub Main() ' Retrieve the license key from the web.config appSettings Dim licenseKey As String = ConfigurationManager.AppSettings("IronZip.LicenseKey") ' Apply the license key to IronZip IronZip.License.LicenseKey = licenseKey ' Verify that the license key is set properly Console.WriteLine("License key applied successfully.") End Sub End Class $vbLabelText $csharpLabel using System.Configuration; ディレクティブは、Web.config などの構成ファイルへのアクセスを許可します。 ConfigurationManager.AppSettings["IronZip.LicenseKey"] は、Web.config の appSettings セクションに保存されているライセンス キーを取得します。 IronZip.License.LicenseKey = licenseKey; は、ライセンス例外を回避するために、取得したキーをIronZIPライブラリに割り当てます。 Console.WriteLine() ステートメントは、ライセンス キーの適用プロセスが正常に完了したことを開発者にフィードバックします。 カーティス・チャウ 今すぐエンジニアリングチームとチャット テクニカルライター Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。開発以外にも、CurtisはIoT(Internet of Things)への強い関心を持ち、ハードウェアとソフトウェアの統合方法を模索しています。余暇には、ゲームをしたりDiscordボットを作成したりして、技術に対する愛情と創造性を組み合わせています。 準備はできましたか? Nuget ダウンロード 19,492 | バージョン: 2026.4 リリース 無料トライアル NuGet 無料ダウンロード 総ダウンロード数: 19,492 ライセンスを見る まだスクロールしていますか? すぐに証拠が欲しいですか? PM > Install-Package IronZip サンプルを実行する ファイルがアーカイブになるのを見る。 NuGet 無料ダウンロード 総ダウンロード数: 19,492 ライセンスを見る