NET (Agent, Installation)

cancel
Showing results for 
Search instead for 
Did you mean: 

Asp.net reportviewer error while running appDynamics on Application server

Highlighted

Asp.net reportviewer error while running appDynamics on Application server

Getting below given error while running appDynamics on application server (asp.net website project)
 
mscorlib
Attempt by method 'AppDynamics.Agent.MSCORLIb.AgentBootstrap.IsAspNetConfigLoaded()' to access field 'System.Web.Configuration.HttpConfigurationSystem.s_inited' failed.
at System.Reflection.RtFieldInfo.PerformVisibilityCheckOnField(IntPtr field, Object target, RuntimeType declaringType, FieldAttributes attr, UInt32 invocationFlags)
at System.Reflection.RtFieldInfo.InternalGetValue(Object obj, StackCrawlMark& stackMark)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at AppDynamics.Agent.MSCORLIb.AgentBootstrap.IsAspNetConfigLoaded()
at AppDynamics.Agent.MSCORLIb.AgentBootstrap.AspNetAppPathLaunchCondition()
at System.AppDomain.Setup(Object arg)
at System.AppDomain.nCreateDomain(String friendlyName, AppDomainSetup setup, Evidence providedSecurityInfo, Evidence creatorsSecurityInfo, IntPtr parentSecurityDescriptor)
at System.AppDomainManager.CreateDomainHelper(String friendlyName, Evidence securityInfo, AppDomainSetup appDomainInfo)
at System.AppDomain.InternalCreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at System.AppDomain.CreateDomain(String friendlyName, Evidence securityInfo, AppDomainSetup info)
at Microsoft.Reporting.ControlPolicyManager.CreateAppDomainWithPolicy(String appDomainName, Evidence evidence, AppDomainSetup setupInfo, SandboxCasPolicySettings casSettings)
at Microsoft.ReportingServices.AppDomainPool.CreateAppDomain(DateTime timeStamp, SandboxCasPolicySettings casSettings)
at Microsoft.ReportingServices.AppDomainPool.GetAppDomain(SandboxCasPolicySettings casSettings)
at Microsoft.Reporting.WebForms.LocalReport.ReportRuntimeSetupHandler.EnsureSandboxAppDomainIfNeeded()
at Microsoft.Reporting.WebForms.LocalReport.ReportRuntimeSetupHandler.get_ReportRuntimeSetup()
at Microsoft.Reporting.WebForms.LocalReport.EnsureExecutionSession()
at Microsoft.Reporting.WebForms.LocalReport.SetParameters(IEnumerable`1 parameters)
at Search_EventReportViewer.Page_Load(Object sender, EventArgs e) in c:\Users\VAkula\AppData\Local\Temp\WebSitePublish\eDockets_project--887481299\obj\Debug\AspnetCompileMerge\Source\Search\EventReportViewer.aspx.cs:line 139
at System.Web.UI.Control.OnLoad(EventArgs e)
at BasePage3.OnLoad(EventArgs e) in c:\Users\VAkula\AppData\Local\Temp\WebSitePublish\eDockets_project--887481299\obj\Debug\AspnetCompileMerge\Source\App_Code\BasePage3.cs:line 191
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
It throws an exception on this line "EventReportViewer.LocalReport.SetParameters(parm);"
 
 
Code
 
  ReportDataSource rds = new ReportDataSource(reportDataSet, dt);
                ReportParameter[] parm;
                TimeZone localZone = TimeZone.CurrentTimeZone;
                parm = new ReportParameter[9];
                parm[0] = new ReportParameter("ShowRules", Request.QueryString["Auth"]);
                parm[1] = new ReportParameter("Jurisdiction", Request.QueryString["Jurisdiction"]);
                parm[2] = new ReportParameter("TriggerType", Request.QueryString["TriggerType"]);
                parm[3] = new ReportParameter("TriggerDate", Request.QueryString["TriggerDate"]);
                parm[4] = new ReportParameter("LogoPath", Server.MapPath("~/Report/Auto_Report/Images/CompanyLogo.gif"));
                parm[5] = new ReportParameter("ShowLogo", ConfigManager.AppSettings.eDocketsShowLogo);
                parm[6] = new ReportParameter("ClientNumber", Request.QueryString["Client"]);
                parm[7] = new ReportParameter("MatterNumber", Request.QueryString["Matter"]);
                parm[8] = new ReportParameter("CaseTitle", Request.QueryString["CaseTitle"]);
 
                EventReportViewer.LocalReport.EnableExternalImages = true;
                EventReportViewer.LocalReport.SetParameters(parm); //This line throws an exception
                EventReportViewer.LocalReport.DataSources.Clear();
                EventReportViewer.LocalReport.DataSources.Add(rds);
                EventReportViewer.LocalReport.Refresh();
                EventReportViewer.Visible = true;

Asp.net reportviewer error while running appDynamics on Application server