我们已经准备好了,你呢?

我们与您携手共赢,为您的企业形象保驾护航!

当前位置: 首页 > 问答 > Could not load file or assembly ‘xxxx’ or one of its dependencies. An attempt was made

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 再次访问已经可以打开网站


免责声明:本站内容(文字信息+图片素材)来源于互联网公开数据整理或转载,仅用于学习参考,如有侵权问题,请及时联系本站删除,我们将在5个工作日内处理。联系邮箱:chuangshanghai#qq.com(把#换成@)

我们已经准备好了,你呢?

我们与您携手共赢,为您的企业形象保驾护航!

在线客服
联系方式

热线电话

132-7207-3477

上班时间

周一到周五 09:00-18:00

二维码
线