Using IronZIP License Keys

This article was translated from English: Does it need improvement?
Translated
View the article in English

How to Get a License Key

Adding an IronZIP license key allows you to deploy your project live without restrictions or watermarks.

You can buy a license key or sign up for a free 30 day trial key here.


Step 1: Download the Latest Version of IronZIP

[Ensure you get the latest version of IronZIP from the official website or repository.]

Step 2: Apply Your License Key

Set your license using code

Add this code to the startup of your application, before IronZIP is used.

:path=/static-assets/zip/content-code-examples/get-started/license-keys-apply.cs
// 该代码片段不可用!
IRON VB CONVERTER ERROR developers@ironsoftware.com
$vbLabelText   $csharpLabel

Set your license using Web.Config or App.Config

To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings.

<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

There is a known licensing issue with IronZIP versions released before 2024.3.3 on projects:

  • ASP.NET projects
  • .NET Framework version >= 4.6.2

The key stored in a Web.config file is NOT being picked up and used by the product. Visit the 'Setting License Key in Web.config' troubleshooting article to learn more.

Ensure that IronZip.License.IsLicensed returns true to verify.


Set your license key using a .NET Core appsettings.json file

To apply a key globally to your application in .NET Core:

  • Add a JSON file to your project called appsettings.json in the root directory of your project.
  • Add a 'IronZip.LicenseKey' key to your JSON config file. The value should be your license key.
  • Ensure that the file properties include Copy to Output Directory: Copy always.

File: appsettings.json

{
    "IronZip.LicenseKey":"IRONZIP.MYLICENSE.KEY.1EF01"
}

Step 3: Validate Your License Key

Verify the Installed License Key

To verify whether the license key has been applied correctly, you can check the IsLicensed property. Use the following code snippet:

:path=/static-assets/zip/content-code-examples/get-started/license-keys-is-licensed.cs
// 该代码片段不可用!
IRON VB CONVERTER ERROR developers@ironsoftware.com
$vbLabelText   $csharpLabel

Validate the License Key

To ensure the validity of your license or trial key, you can use the following code snippet:

:path=/static-assets/zip/content-code-examples/get-started/license-keys-is-valid.cs
// 该代码片段不可用!
IRON VB CONVERTER ERROR developers@ironsoftware.com
$vbLabelText   $csharpLabel

If the return value is True, it means the key is valid, and you can proceed with using IronZIP. However, if the return value is False, it indicates that the key is invalid.


Step 4: Getting Started with Your Project

To get started with IronZIP, we highly recommend following our comprehensive tutorial on how to Get Started with IronZip. This tutorial offers detailed instructions and examples to help you grasp the basics of using IronZip.


Questions or Need Support?

To use IronZip in live projects, you'll require a paid or trial license key, which you can obtain by purchasing a license. The trial license is available by visiting this link.

For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronZIP section on our website.

If you have any questions, feel free to reach out to support@ironsoftware.com.

常见问题解答

如何在C#应用程序中应用许可证密钥?

要在C#应用程序中应用许可证密钥,您可以在应用程序启动时使用IronZIP许可证密钥。在使用IronZIP之前添加此代码以确保许可证正确应用。

如何将许可证密钥添加到Web.Config或App.Config中?

要在Web.Config或App.Config中全局应用许可证密钥,请将许可证密钥放入配置文件中的appSettings部分。请注意,可能会出现与ASP.NET项目及.NET Framework 4.6.2及以上版本相关的问题。

如果在 Web.Config 中无法识别我的许可证密钥,我该怎么办?

如果您的许可证密钥在Web.Config中未被识别,请检查2024.3.3之前的IronZIP版本相关的已知问题。有关更多信息,请参考IronZIP网站上的故障排除指南。

如何验证我的IronZIP许可证密钥是否有效?

您可以通过使用IronZip.License.IsLicensed属性来验证您的IronZIP许可证密钥。如果返回true,则表示您的许可证密钥已正确安装。

如何在.NET Core应用程序中设置许可证密钥?

在.NET Core应用程序中,您可以通过将其添加到项目根目录中的appsettings.json文件中来设置许可证密钥。确保密钥位于'IronZip.LicenseKey'下,并且文件设置为'Copy to Output Directory: Copy always'。

如何验证我的许可证密钥是否有效?

要验证许可证密钥的有效性,请使用IronZip.License.IsValid属性。如果返回true,则表示密钥有效,您可以继续使用IronZIP。

哪里可以找到IronZIP的入门教程?

要开始使用IronZIP,请遵循IronZIP网站上提供的综合教程,其中提供详细的说明和示例。

如果我需要IronZIP的支持,我应该联系谁?

对于任何关于IronZIP的支持或咨询,请联系support@ironsoftware.com。您还可以浏览网站上IronZIP部分的广泛文档和资源。

IronZIP 与 .NET 10 兼容吗?

是的——IronZIP 支持包括 .NET 8 和 .NET 9 在内的现代 .NET 版本,并具有跨平台兼容性。由于 .NET 10 已于 2025 年 11 月 11 日发布,IronZIP 仍可在最新的 LTS 版本下继续运行。您可能需要将 SDK/工具更新到 .NET 10 才能使用最新功能。([dotnet.microsoft.com](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core?utm_source=openai))

Curtis Chau
技术作家

Curtis Chau 拥有卡尔顿大学的计算机科学学士学位,专注于前端开发,精通 Node.js、TypeScript、JavaScript 和 React。他热衷于打造直观且美观的用户界面,喜欢使用现代框架并创建结构良好、视觉吸引力强的手册。

除了开发之外,Curtis 对物联网 (IoT) 有浓厚的兴趣,探索将硬件和软件集成的新方法。在空闲时间,他喜欢玩游戏和构建 Discord 机器人,将他对技术的热爱与创造力相结合。

准备开始了吗?
Nuget 下载 16,000 | 版本: 2025.11 刚刚发布