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

时间:2010-12-18 12:45:01

标签: .net asp.net dll iis-6 expression-encoder

我在托管我的Web应用程序时遇到了一些问题(这是一个PowerBuilder V12.0 .Net Web Appliaction由PB V12.0 Classic开发或从旧PB版本迁移,因为项目文件被转换为ASP.Net *。 Windows Server 2003上的IIS V6.0和安装.Net Framework 4.0之后的aspx文件,以匹配需要.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,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 .....

我需要快速解决该问题,并提前致谢...

1 个答案:

答案 0 :(得分:0)

仅在放置所需的DLL文件并删除其他不必要的DLL文件时解决。这是一个受到干扰和损坏的DLL文件的问题。