错误消息:无法加载文件或程序集“Microsoft.Expression.Encoder.Api2.dll”

发布于 2024-10-08 17:22:46 字数 1912 浏览 6 评论 0原文

我在托管 Web 应用程序时遇到一些问题(这是由 PB V12.0 Classic 开发的 PowerBuilder V12.0 .Net Web 应用程序或从旧 PB 版本迁移的项目文件转换为 ASP.Net *.aspx 文件)在 Windows Server 2003 上的 IIS V6.0 中并安装 .Net Framework 版本 4.0 以匹配需要 .Net Framework 2.0+ 的 Web 应用程序后,

我收到的错误消息如下:-

Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.

Description:

在执行当前 Web 期间发生未处理的异常要求。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

Exception Details:

System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.Expression.Encoder.Api2.dll”或其依赖项之一。找不到指定的模块。

Source Error: 

执行当前 Web 请求期间生成未处理的异常。有关异常来源和位置的信息可以使用下面的异常堆栈跟踪来识别。

Stack Trace: 

[FileNotFoundException:无法加载文件或程序集“Microsoft.Expression.Encoder.Api2.dll”或其依赖项之一。找不到指定的模块。] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, 布尔值 throwOnFileNotFound, 布尔值 forIntrospection, 布尔值抑制SecurityChecks) +0 System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, 布尔值 throwOnFileNotFound, 布尔值 forIntrospection, 布尔值抑制SecurityChecks) +39 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,证据 assemblySecurity,StackCrawlMark 和 stackMark,布尔值 forIntrospection,布尔值抑制SecurityChecks)+132 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144 System.Reflection.Assembly.Load(字符串 assemblyString)+28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串程序集名称,布尔星指令)+46 .....

我需要一个快速解决该问题的方法,提前致谢...

I face some problems while I host my web application(which is a PowerBuilder V12.0 .Net Web Appliaction Developed By PB V12.0 Classic or Migrated from Old PB Versions as the project files are Converted to ASP.Net *.aspx files) in IIS V6.0 on Windows Server 2003and After Installation of .Net Framework Version 4.0 to match the web application which requires .Net Framework 2.0+

The Error Message I get is as follows:-

Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.

Description:

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[FileNotFoundException: Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
.....

I need a quick solution for that problem and Thanks in Advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤君无依 2024-10-15 17:22:46

只放入需要的DLL文件,删除其他不需要的DLL文件即可解决。这是 DLL 文件受到干扰和损坏的问题。

It is solved when putting the needed DLL files only and deleting other unnecessary DLL files. It was a problem of interfered and corrupted DLL files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文