web.config 파일의 IronBarcode 라이선스 설정
Curtis Chau
Updated: 2026년 4월 22일
이 문제는 IronBarcode 2024.3.2 버전에서 해결되었습니다.
Exception: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronBarcode must be licensed for development.
Text
구버전 IronBarcode(특히 2023.4.1부터 2024.3.2 버전 사이)의 경우, 다음 위치에서 알려진 라이선스 문제가 있습니다:
- 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>
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;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
기술 문서 작성자
커티스 차우는 칼턴 대학교에서 컴퓨터 과학 학사 학위를 취득했으며, Node.js, TypeScript, JavaScript, React를 전문으로 하는 프론트엔드 개발자입니다. 직관적이고 미적으로 뛰어난 사용자 인터페이스를 만드는 데 열정을 가진 그는 최신 프레임워크를 활용하고, 잘 구성되고 시각적으로 매력적인 매뉴얼을 제작하는 것을 즐깁니다.
...
더 읽어보기