Could not load file or assembly ‘xxxx’ or one of its dependencies. An attempt was made

发布时间:2026-02-04 05:29:47 浏览次数:0


Could not load file or assembly ‘xxxx’ or one of its dependencies. An attempt was made to load a program with an incorrect format.

Server Error in ‘/’ Application.


Could not load file or assembly ‘Gma.QrCodeNet.Encoding’ or one of its dependencies. 系统找不到指定的文件。

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 ‘Gma.QrCodeNet.Encoding’ or one of its dependencies. 系统找不到指定的文件。

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.
WRN:AssemblybindingloggingisturnedOFF.Toenableassemblybindfailurelogging,settheregistryvalue[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)to1.Note:Thereissomeperformancepenaltyassociatedwithassemblybindfailurelogging.Toturnthisfeatureoff,removetheregistryvalue[HKLM\Software\Microsoft\Fusion!EnableLog].
[FileNotFoundException:Couldnotloadfileorassembly'Gma.QrCodeNet.Encoding'oroneofitsdependencies.系统找不到指定的文件。][FileNotFoundException:Couldnotloadfileorassembly'Gma.QrCodeNet.Encoding,Version=0.4.0.0,Culture=neutral,PublicKeyToken=e8a75d24b142be49'oroneofitsdependencies.系统找不到指定的文件。]System.Reflection.RuntimeAssembly._nLoad(AssemblyNamefileName,StringcodeBase,EvidenceassemblySecurity,RuntimeAssemblylocationHint,StackCrawlMark&stackMark,BooleanthrowOnFileNotFound,BooleanforIntrospection,BooleansuppressSecurityChecks)+0System.Reflection.RuntimeAssembly.nLoad(AssemblyNamefileName,StringcodeBase,EvidenceassemblySecurity,RuntimeAssemblylocationHint,StackCrawlMark&stackMark,BooleanthrowOnFileNotFound,BooleanforIntrospection,BooleansuppressSecurityChecks)+39System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyNameassemblyRef,EvidenceassemblySecurity,StackCrawlMark&stackMark,BooleanforIntrospection,BooleansuppressSecurityChecks)+132System.Reflection.RuntimeAssembly.InternalLoad(StringassemblyString,EvidenceassemblySecurity,StackCrawlMark&stackMark,BooleanforIntrospection)+144System.Reflection.Assembly.Load(StringassemblyString)+28System.Web.Configuration.CompilationSection.LoadAssemblyHelper(StringassemblyName,BooleanstarDirective)+46[ConfigurationErrorsException:Couldnotloadfileorassembly'Gma.QrCodeNet.Encoding,Version=0.4.0.0,Culture=neutral,PublicKeyToken=e8a75d24b142be49'oroneofitsdependencies.系统找不到指定的文件。]System.Web.Configuration.CompilationSection.LoadAssemblyHelper(StringassemblyName,BooleanstarDirective)+618System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()+209System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfoai)+130System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSectioncompConfig)+178System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()+94System.Web.Compilation.BuildManager.CallPreStartInitMethods()+332System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManagerappManager,IApplicationHostappHost,IConfigMapPathFactoryconfigMapPathFactory,HostingEnvironmentParametershostingParameters,PolicyLevelpolicyLevel,ExceptionappDomainCreationException)+677[HttpException(0x80004005):Couldnotloadfileorassembly'Gma.QrCodeNet.Encoding,Version=0.4.0.0,Culture=neutral,PublicKeyToken=e8a75d24b142be49'oroneofitsdependencies.系统找不到指定的文件。]System.Web.HttpRuntime.FirstRequestInit(HttpContextcontext)+9088956System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContextcontext)+97System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequestwr,HttpContextcontext)+256

经过一番折腾排查未找到导致无法加载dll文件原因,客户说在美国的云服务器可以正常运行,最后忽视应用池开启32位。改为false 再次访问已经可以打开网站


application load error
需要做网站?需要网络推广?欢迎咨询客户经理 13272073477