cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

NET (Agent, Installation)

Asp.net reportviewer error while running appDynamics on Application server

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;

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Asp.net reportviewer error while running appDynamics on Application server
5 REPLIES 5
Jose Ignacio.Durand
New Member

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

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

 

What version of .Net Agent are you running ?

Jose Ignacio.Durand
New Member

dotNetAgentSetup64-4.5.1.2672

We upgraded to 4.5.5, it resolved for us. 

 

Hopefully, this will resolve for you. Good luck!

Jose Ignacio.Durand
New Member

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