Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-30-2018 01:51 PM
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;
12-21-2018 10:55 AM
I'm getting the same error when the site works with reportviewer.
Did you find a solution?
12-21-2018 10:58 AM
Yes, We upgraded to latest .Net Agent, and the issue is resolved.
What version of .Net Agent are you running ?
12-21-2018 11:03 AM
dotNetAgentSetup64-4.5.1.2672
12-21-2018 11:08 AM
We upgraded to 4.5.5, it resolved for us.
Hopefully, this will resolve for you. Good luck!
12-21-2018 11:13 AM
Thanks a lot. I'll try to solve the problem updating the agent.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form