首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >详细信息:无法加载文件或程序集的BarcodeLib、Version=1.0.0.19或其依赖项之一

详细信息:无法加载文件或程序集的BarcodeLib、Version=1.0.0.19或其依赖项之一
EN

Stack Overflow用户
提问于 2019-03-27 17:53:50
回答 1查看 720关注 0票数 0

之前我使用的是带有3.5框架的VS2013,但现在我安装了VisualStudio 2017,当我打开报告项目时,它会将项目转换为最新的框架,然后当我尝试构建项目时,它会抛出以下错误:

我使用第三方库barcodeLib来调整条形码和字体,其中我每次都使用已经在各自的报告文件中引用的库。

任何人对这个问题都有想法

代码语言:javascript
复制
Severity    Code    Description Project File    Line    Suppression State
    Error       [rsErrorLoadingCodeModule] Error while loading code module: ‘BarcodeLib, Version=1.0.0.19, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'BarcodeLib, Version=1.0.0.19, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.      C:\softwares\End.rdl    0   
    Error       [rsCompilerErrorInClassInstanceDeclaration] Error in class instance declaration for class BarcodeLib.Barcode: [BC30002] Type 'BarcodeLib.Barcode' is not defined.       C:\softwares\End.rdl    0   
    Error       [rsCompilerErrorInCode] There is an error on line 328 of custom code: [BC30451] 'BarcodeLib' is not declared. It may be inaccessible due to its protection level.       C:\softwares\End.rdl    0   
    Error       [rsCompilerErrorInCode] There is an error on line 33 of custom code: [BC30451] 'BarcodeLib' is not declared. It may be inaccessible due to its protection level.        C:\softwares\Projects\App.rdl   0   
    Error       [rsCompilerErrorInClassInstanceDeclaration] Error in class instance declaration for class Barcodelib.Barcode: [BC30002] Type 'Barcodelib.Barcode' is not defined.       C:\softwares\App.rdl    0   
    Error       [rsErrorLoadingCodeModule] Error while loading code module: ‘BarcodeLib, Version=1.0.0.19, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'BarcodeLib, Version=1.0.0.19, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.      C:\softwares\App.rdl    0   
    Error       [rsErrorLoadingCodeModule] Error while loading code module: ‘BarcodeLib, Version=1.0.0.19, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'BarcodeLib, Version=1.0.0.19, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.      C:\softwares\AppChild.rdl   0   
    Error       [rsCompilerErrorInCode] There is an error on line 44 of custom code: [BC30451] 'BarcodeLib' is not declared. It may be inaccessible due to its protection level.        C:\softwares\AppChild.rdl   0   
    Error       [rsCompilerErrorInClassInstanceDeclaration] Error in class instance declaration for class Barcodelib.Barcode: [BC30002] Type 'Barcodelib.Barcode' is not defined.       C:\softwares\AppChild.rdl   0   
    Error       [rsCompilerErrorInCode] There is an error on line 13 of custom code: [BC30451] 'BarcodeLib' is not declared. It may be inaccessible due to its protection level.        C:\softwares\Cancellation.rdl   0   
    Error       [rsCompilerErrorInClassInstanceDeclaration] Error in class instance declaration for class Barcodelib.Barcode: [BC30002] Type 'Barcodelib.Barcode' is not defined.       C:\softwares\Cancellation.rdl   0   
EN

回答 1

Stack Overflow用户

发布于 2019-04-23 03:17:59

我无法在报告定义文件中使用的Barcodelib1.1.0.0版本的VS2019中编译/加载,所以我最终将该动态链接库注册到GAC中,这似乎可以工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55374290

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档