Splunk AppDynamics

Asp.net reportviewer error while running appDynamics on Application server

CommunityUser
Splunk Employee
Splunk Employee

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;

Labels (1)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

I'm getting the same error when the site works with reportviewer.
Did you find a solution?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Yes, We upgraded to latest .Net Agent, and the issue is resolved.

What version of .Net Agent are you running ?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

dotNetAgentSetup64-4.5.1.2672

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

We upgraded to 4.5.5, it resolved for us. 

Hopefully, this will resolve for you. Good luck!

CommunityUser
Splunk Employee
Splunk Employee

Thanks a lot. I'll try to solve the problem updating the agent.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...