버전 불일치 예외
Invalid assembly version for 'IronInterop' (actual: 2022.x.x.xxxx; expected: 2022.x.x.xxxx). This version of IronPdf requires updated native dependencies. Please clear your build output directory of old assemblies so IronPdf can automatically download the new dependencies at runtime. Alternatively, you may add NuGet package IronPdf.Native.Chrome version 2022.x.xxxx to your project and rebuild.
이 오류는 IronPdf.Slim 패키지와 해당 종속 패키지의 버전이 일치하지 않아 호환되지 않을 때 발생합니다.
가능한 원인
이 오류는 일반적으로 IronPdf.Slim 패키지만 업데이트되고 해당 종속 패키지는 최신 버전이 아닐 때 발생합니다.
IronPdf.Slim 패키지의 주요 종속성은 다음과 같습니다.
- Iron Software.Common
- Iron Software.시스템.도면
- IronPdf.Native.Chrome
- IronPdf.Native.Chrome.Windows (Windows용)
- IronPdf.Native.Chrome.Linux (리눅스용)
- Iron Software.네이티브.Pdf모델
이러한 종속성은 특히 이전 버전에서 IronPdf.Slim과 함께 자동으로 업데이트되지 않을 수 있습니다.
솔루션
이 문제를 해결하려면 다음 옵션을 고려해 보세요.
-
IronPDF 패키지 재설치 : Visual Studio의 NuGet 패키지 관리자를 사용하여 IronPDF 관련 패키지를 모두 제거한 다음 최신 버전을 다시 설치하십시오. 이렇게 하면 오래된 바이너리가 제거되어 런타임 충돌을 방지할 수 있습니다. 호환되는 종속성 버전은 NuGet 페이지를 참조하십시오.
-
IronPDF 로 전환하려면 : IronPdf.Slim 및 관련 종속 파일을 제거한 다음 전체 IronPDF 패키지를 설치하십시오. 이렇게 하면 호환되는 버전의 필요한 모든 종속성이 자동으로 포함됩니다.
-
종속성 자동 다운로드 활성화 : 언급된 종속성을 제거하고 다음 코드를 사용하여 IronPdf.Slim을 실행하십시오.
// Enables automatic download of native binaries during runtime IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;// Enables automatic download of native binaries during runtime IronPdf.Installation.AutomaticallyDownloadNativeBinaries = true;' Enables automatic download of native binaries during runtime IronPdf.Installation.AutomaticallyDownloadNativeBinaries = True$vbLabelText $csharpLabel이렇게 하면 초기 실행 시 올바른 네이티브 바이너리와 종속성이 다운로드됩니다. 참고로 이 작업에는 인터넷 연결이 필요하며 다소 시간이 걸릴 수 있습니다.
추가적인 도움이 필요하시면 엔지니어링 요청서를 제출해 주세요.

