Nmdinesh Kumar

Nmdinesh Kumar

  • NA
  • 9
  • 35.6k

Crystal Report Log4net error

Jan 26 2015 2:17 AM

Server Error in '/' Application.

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.

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 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Source Error: 

Line 12: public partial class Reports_ReportViewer : System.Web.UI.Page
Line 13: {
Line 14: ReportDocument rptDocument = new ReportDocument();
Line 15: ParameterDiscreteValue crtParamDiscreteValue = new ParameterDiscreteValue();
Line 16: protected void Page_Load(object sender, EventArgs e)

Source File: d:\WEBDATA\sriramcollege.com\Reports\ReportViewer.aspx.cs    Line: 14 


Stack Trace: 

[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: 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() +159 [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.] CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0 Reports_ReportViewer..ctor() in d:\WEBDATA\sriramcollege.com\Reports\ReportViewer.aspx.cs:14 ASP.reports_reportviewer_aspx..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e63cc5e2\46d2498\App_Web_xxd4aby4.0.cs:0 __ASP.FastObjectFactory_app_web_xxd4aby4.Create_ASP_reports_reportviewer_aspx() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e63cc5e2\46d2498\App_Web_xxd4aby4.2.cs:0 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +30 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +64 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +191 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +145 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 

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

Attachment: crytest.rar

Answers (1)