IBM.Data.DB2 FileNotFound 正在加载 Microsoft.ReportingServices.Interfaces
IBM.Data.DB2 FileNotFound Loading Microsoft.ReportingServices.Interfaces
我有一个 ASP.Net 应用程序,它引用了一个包含一些可重用代码(公共实用程序、数据访问等)的程序集。程序集引用 IBM.Data.DB2.dll
。但是,我没有在我的应用程序中使用 DB2,IBM.Data.DB2.dll
只是一个依赖项(以防应用程序需要连接到 DB2)。最近,我 运行 遇到以下错误:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportingServices.Interfaces, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportingServices.Interfaces, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Unity.AutoRegistration.AutoRegistration.<ApplyAutoRegistration>b__5(Assembly a)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Unity.AutoRegistration.AutoRegistration.ApplyAutoRegistration()
整个应用程序中唯一包含 Microsoft.ReportingServices.Interfaces 的文件是 IBM.Data.DB2.dll
文件。部署应用程序时,我不需要 SQL 服务器或 SQL 服务器本地安装的开销,在服务器上的开销要少得多。请记住,我 需要 使用依赖于 IBM.Data.DB2.dll
的程序集,并且这个错误过去没有发生过,似乎是最近发生的。
我试过绑定重定向,通过 Nuget 安装 Microsoft.ReportingServices.Interfaces 都无济于事。
有谁知道为什么会出现此错误,更重要的是....如何解决?
如果 IBM.Data.DB2.dll
引用 Microsoft.ReportingServices.Interfaces
,您可能需要手动将 Microsoft.ReportingServices.Interfaces.dll
复制到您的 bin
文件夹中。这里有一个 post 可以帮助你:
Microsoft.ReportingServices.Interfaces.dll missing for SSRS 2005
我有一个 ASP.Net 应用程序,它引用了一个包含一些可重用代码(公共实用程序、数据访问等)的程序集。程序集引用 IBM.Data.DB2.dll
。但是,我没有在我的应用程序中使用 DB2,IBM.Data.DB2.dll
只是一个依赖项(以防应用程序需要连接到 DB2)。最近,我 运行 遇到以下错误:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportingServices.Interfaces, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportingServices.Interfaces, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Unity.AutoRegistration.AutoRegistration.<ApplyAutoRegistration>b__5(Assembly a)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Unity.AutoRegistration.AutoRegistration.ApplyAutoRegistration()
整个应用程序中唯一包含 Microsoft.ReportingServices.Interfaces 的文件是 IBM.Data.DB2.dll
文件。部署应用程序时,我不需要 SQL 服务器或 SQL 服务器本地安装的开销,在服务器上的开销要少得多。请记住,我 需要 使用依赖于 IBM.Data.DB2.dll
的程序集,并且这个错误过去没有发生过,似乎是最近发生的。
我试过绑定重定向,通过 Nuget 安装 Microsoft.ReportingServices.Interfaces 都无济于事。
有谁知道为什么会出现此错误,更重要的是....如何解决?
如果 IBM.Data.DB2.dll
引用 Microsoft.ReportingServices.Interfaces
,您可能需要手动将 Microsoft.ReportingServices.Interfaces.dll
复制到您的 bin
文件夹中。这里有一个 post 可以帮助你:
Microsoft.ReportingServices.Interfaces.dll missing for SSRS 2005