IronBarcode トラブルシューティング Web.configでのライセンスキーの設定 IronBarcode License Setup in web.config Curtis Chau 更新日:6月 1, 2025 Download IronBarcode NuGet Download テキストの検索と置換 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English この問題はIronBarcodeの2024.3.2バージョンで解決されています。 Exception: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronBarcode must be licensed for development. For older IronBarcode versions, specifically those between versions 2023.4.1 and 2024.3.2, there is a known licensing issue in: ASP.NETプロジェクト .NET Frameworkバージョン >= 4.6.2 Web.configファイルに保存されたキーが製品によって使用されません。 回避策 この問題を解決するには、コード内でConfigurationManagerを使用してWeb.configファイルからライセンスキーを取得し、それをLicense.LicenseKeyプロパティに適用することをお勧めします。 例: <configuration> ... <appSettings> <add key="IronBarCode.LicenseKey" value="IRONBARCODE-MYLICENSE-KEY-1EF01"/> </appSettings> ... </configuration> <configuration> ... <appSettings> <add key="IronBarCode.LicenseKey" value="IRONBARCODE-MYLICENSE-KEY-1EF01"/> </appSettings> ... </configuration> XML 上記のXMLファイルを使用して、ConfigurationManagerを使ってライセンスキーの値を取得し、それをIronBarCode.License.LicenseKeyプロパティに渡すことができます。 using System.Configuration; // Retrieve the license key from appSettings in the Web.config file string licenseKey = ConfigurationManager.AppSettings["IronBarCode.LicenseKey"]; // Apply the retrieved license key to the IronBarCode LicenseKey property IronBarCode.License.LicenseKey = licenseKey; using System.Configuration; // Retrieve the license key from appSettings in the Web.config file string licenseKey = ConfigurationManager.AppSettings["IronBarCode.LicenseKey"]; // Apply the retrieved license key to the IronBarCode LicenseKey property IronBarCode.License.LicenseKey = licenseKey; Imports System.Configuration ' Retrieve the license key from appSettings in the Web.config file Private licenseKey As String = ConfigurationManager.AppSettings("IronBarCode.LicenseKey") ' Apply the retrieved license key to the IronBarCode LicenseKey property IronBarCode.License.LicenseKey = licenseKey $vbLabelText $csharpLabel Curtis Chau 今すぐエンジニアリングチームとチャット テクニカルライター Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。開発以外にも、CurtisはIoT(Internet of Things)への強い関心を持ち、ハードウェアとソフトウェアの統合方法を模索しています。余暇には、ゲームをしたりDiscordボットを作成したりして、技術に対する愛情と創造性を組み合わせています。 準備はいいですか? Nuget ダウンロード 1,935,276 | バージョン: 2025.11 ただ今リリースされました 試用ライセンスキーがメールで送信されました。 総ダウンロード数: 1,935,276 ライセンスを見る