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 located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
Line 13: public partial class ReportViewer : System.Web.UI.Page Line 14: { Line 15: ReportDocument rptDocument = new ReportDocument(); Line 16: ParameterDiscreteValue crtParamDiscreteValue = new ParameterDiscreteValue(); Line 17: protected void Page_Load(object sender, EventArgs e)
Stack Trace:
[FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] 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) +10 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 ReportViewer..ctor() in d:\WEBDATA\sriramcollege.com\Reports\ReportViewer.aspx.cs:15 ASP.reports_reportviewer_aspx..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e63cc5e2\46d2498\App_Web_bvplj1td.0.cs:0 __ASP.FastObjectFactory_app_web_bvplj1td.Create_ASP_reports_reportviewer_aspx() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e63cc5e2\46d2498\App_Web_bvplj1td.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
Nmdinesh KumarPosted Jan 22, 2015, 3:36 AM
Can share your contact detail because i dont know how to set copylocal set true
Bhushan GawalePosted Jan 22, 2015, 3:20 AM
Open the References node for the project.
Right-click your assembly in the References list, and click Properties.
The properties associated with that reference appear in a list in the Properties window.
In the Properties window, make sure the Copy Local property is set to True.
Nmdinesh KumarPosted Jan 22, 2015, 3:10 AM
My local working correctly deployment is not working its required log4net dll and how to set local property true
Bhushan GawalePosted Jan 22, 2015, 3:07 AM