之前我使用的是带有3.5框架的VS2013,但现在我安装了VisualStudio 2017,当我打开报告项目时,它会将项目转换为最新的框架,然后当我尝试构建项目时,它会抛出以下错误:
我使用第三方库barcodeLib来调整条形码和字体,其中我每次都使用已经在各自的报告文件中引用的库。
任何人对这个问题都有想法
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
发布于 2019-04-23 03:17:59
我无法在报告定义文件中使用的Barcodelib1.1.0.0版本的VS2019中编译/加载,所以我最终将该动态链接库注册到GAC中,这似乎可以工作。
https://stackoverflow.com/questions/55374290
复制相似问题