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