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
Get Updates on the Splunk Community!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...