• <legend id='Whrk7'><style id='Whrk7'><dir id='Whrk7'><q id='Whrk7'></q></dir></style></legend>
      <bdo id='Whrk7'></bdo><ul id='Whrk7'></ul>

    <small id='Whrk7'></small><noframes id='Whrk7'>

    1. <tfoot id='Whrk7'></tfoot>
    2. <i id='Whrk7'><tr id='Whrk7'><dt id='Whrk7'><q id='Whrk7'><span id='Whrk7'><b id='Whrk7'><form id='Whrk7'><ins id='Whrk7'></ins><ul id='Whrk7'></ul><sub id='Whrk7'></sub></form><legend id='Whrk7'></legend><bdo id='Whrk7'><pre id='Whrk7'><center id='Whrk7'></center></pre></bdo></b><th id='Whrk7'></th></span></q></dt></tr></i><div id='Whrk7'><tfoot id='Whrk7'></tfoot><dl id='Whrk7'><fieldset id='Whrk7'></fieldset></dl></div>

        无法加载文件或程序集“log4net,版本=1.2.10.0,文化=中性,PublicKeyToken=692fbea5

        时间:2023-07-10
          <tbody id='6j299'></tbody>
          <tfoot id='6j299'></tfoot>
          <i id='6j299'><tr id='6j299'><dt id='6j299'><q id='6j299'><span id='6j299'><b id='6j299'><form id='6j299'><ins id='6j299'></ins><ul id='6j299'></ul><sub id='6j299'></sub></form><legend id='6j299'></legend><bdo id='6j299'><pre id='6j299'><center id='6j299'></center></pre></bdo></b><th id='6j299'></th></span></q></dt></tr></i><div id='6j299'><tfoot id='6j299'></tfoot><dl id='6j299'><fieldset id='6j299'></fieldset></dl></div>

          <small id='6j299'></small><noframes id='6j299'>

          • <bdo id='6j299'></bdo><ul id='6j299'></ul>

              • <legend id='6j299'><style id='6j299'><dir id='6j299'><q id='6j299'></q></dir></style></legend>

                1. 本文介绍了无法加载文件或程序集“log4net,版本=1.2.10.0,文化=中性,PublicKeyToken=692fbea5521e1304"或其依赖项之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  自过去 2 天以来,我在托管应用程序的服务器中收到此错误.我已经尝试过这里提到的大部分场景.但没有得到任何东西.

                  I am getting this error since last 2 days in my Server where i had hosted application. I had already tried most of the scenario mentioned here. but not getting anything.

                  这是我的堆栈跟踪 -

                  Here is my stack trace -

                  [FileNotFoundException: 无法加载文件或程序集 'log4net,版本=1.2.10.0,文化=中性,PublicKeyToken=692fbea5521e1304' 或它的依赖项之一.系统找不到指定的文件.]
                  CrystalDecisions.Shared.SharedUtils..cctor() +0

                  [FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.]
                  CrystalDecisions.Shared.SharedUtils..cctor() +0

                  [TypeInitializationException: 的类型初始化器CrystalDecisions.Shared.SharedUtils"抛出异常.]
                  CrystalDecisions.Shared.SharedUtils.get_CurrentControl() +18
                  CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture() +8
                  CrystalDecisions.CrystalReports.Engine.CREngineRes.GetString(字符串姓名)+11
                  CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()+143 CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +131

                  [TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.]
                  CrystalDecisions.Shared.SharedUtils.get_CurrentControl() +18
                  CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture() +8
                  CrystalDecisions.CrystalReports.Engine.CREngineRes.GetString(String name) +11
                  CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +143 CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +131

                  [TypeInitializationException: 的类型初始化器'CrystalDecisions.CrystalReports.Engine.ReportDocument' 抛出了一个例外.]
                  CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
                  AdminReports..ctor() +25 ASP.reportviewer_aspx..ctor() +14
                  __ASP.FastObjectFactory_app_web_reportviewer_aspx_cdcab7d2.Create_ASP_reportviewer_aspx()+20 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPathvirtualPath, Type requiredBaseType, HttpContext context, Boolean允许跨应用程序)+109
                  System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext 上下文,String requestType, VirtualPath virtualPath, String physicalPath) +31System.Web.UI.PageHandlerFactory.GetHandler(HttpContext上下文,String requestType, String virtualPath, String path) +37
                  System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+334 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

                  [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
                  CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
                  AdminReports..ctor() +25 ASP.reportviewer_aspx..ctor() +14
                  __ASP.FastObjectFactory_app_web_reportviewer_aspx_cdcab7d2.Create_ASP_reportviewer_aspx() +20 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +109
                  System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
                  System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +334 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

                  版本信息:Microsoft .NET Framework 版本:4.0.30319;ASP.NET 版本:4.0.30319.1

                  Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

                  已经将我的 IIS 配置为允许应用程序在 32 位上运行.

                  Already configured my IIS to allow applications to run on 32bit.

                  推荐答案

                  我遇到了这个问题,为我解决的问题是转到程序属性(在项目 ->程序名称"属性下),然后在发布区,找到Application Files,找到Log4net.dll.

                  I have had this issue, and what fixed it for me was going to the program properties (under Project -> "Program Name" Properties) and then under the publish area, find the Application Files, and find the Log4net.dll.

                  这对我来说设置为包含(自动)",但实际上并未将其包含在程序中.当我将其设置为包含"时,这为我解决了这个问题.

                  This was set to "Include(Auto)" for me, but that did not actually include it in the Program. when i set this to "Include" That fixed that issue for me.

                  这篇关于无法加载文件或程序集“log4net,版本=1.2.10.0,文化=中性,PublicKeyToken=692fbea5521e1304"或其依赖项之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何将 Textbox1 值设置为 Cystal 报告的公式字段 下一篇:Crystal Reports 无法正确呈现

                  相关文章

                  1. <tfoot id='om7sx'></tfoot>

                    • <bdo id='om7sx'></bdo><ul id='om7sx'></ul>

                    <legend id='om7sx'><style id='om7sx'><dir id='om7sx'><q id='om7sx'></q></dir></style></legend>
                  2. <small id='om7sx'></small><noframes id='om7sx'>

                    <i id='om7sx'><tr id='om7sx'><dt id='om7sx'><q id='om7sx'><span id='om7sx'><b id='om7sx'><form id='om7sx'><ins id='om7sx'></ins><ul id='om7sx'></ul><sub id='om7sx'></sub></form><legend id='om7sx'></legend><bdo id='om7sx'><pre id='om7sx'><center id='om7sx'></center></pre></bdo></b><th id='om7sx'></th></span></q></dt></tr></i><div id='om7sx'><tfoot id='om7sx'></tfoot><dl id='om7sx'><fieldset id='om7sx'></fieldset></dl></div>