App crash when profiling an ASP.NET AJAX application

Code and memory profiling for .NET developers.

Moderators: Brian Donahue, richardjm, StephenC

App crash when profiling an ASP.NET AJAX application

Postby bbirney » Mon Feb 08, 2010 9:30 pm

Hi there. When trying to profile my ASP.NET application, the profiler normally works as expected. However, whenever it encounters a page that uses an AJAX control (in this case, the 'official' ASP.NET AJAX \"CascadingDropDown\" control), the app crashes, at the following location:

Code: Select all
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Bad unmanaged code entry point.

Source Error:


Line 4:          <asp:Label ID=\"Label7\" AssociatedControlID=\"MajorCommodity\" Text=\"Major Commodity\" runat=\"server\" /> <% if (!DisplayVertically) { %><br /> <% } %>
Line 5:          <asp:DropDownList ID=\"MajorCommodity\" width=\"175\" runat=\"server\"/>
Line 6:          <ajaxToolkit:CascadingDropDown ID=\"MajorCommodityTypeCascadingDropDown\"
Line 7:              runat=\"server\"
Line 8:              TargetControlID=\"MajorCommodity\"
 

Source File: c:\\This.Isnt.Really.The.App\\Controls\\CommodityTypeSelector.ascx    Line: 6

Stack Trace:


[TypeLoadException: Bad unmanaged code entry point.]
   AjaxControlToolkit.CascadingDropDown..ctor() in C:\\Users\\swalther\\Projects\\AspNetAjax\\Releases\\30930\\AjaxControlToolkitSource\\AjaxControlToolkit\\CascadingDropDown\\CascadingDropDownExtender.cs:41
   ASP.controls_commoditytypeselector_ascx.__BuildControlMajorCommodityTypeCascadingDropDown() in c:\\This.Isnt.Really.The.App\\Controls\\CommodityTypeSelector.ascx:6
   ASP.controls_commoditytypeselector_ascx.__BuildControlTree(controls_commoditytypeselector_ascx __ctrl) in c:\\This.Isnt.Really.The.App\\Controls\\CommodityTypeSelector.ascx:1
   ASP.controls_commoditytypeselector_ascx.FrameworkInitialize() in c:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\Temporary ASP.NET Files\\root\\5883765a\\95915a02\\App_Web_3gsz6yrq.7.cs:0
   ASP.packages_aspx.__BuildControlCommodityTypeFilterSelector() in c:\\This.Isnt.Really.The.App\\Packages.aspx:7
   ASP.packages_aspx.__BuildControlPanel1() in c:\\This.Isnt.Really.The.App\\Packages.aspx:6
   ASP.packages_aspx.__BuildControlContent2(Control __ctrl) in c:\\This.Isnt.Really.The.App\\Packages.aspx:5
   ASP.masterpages_NotTheRealName_master.__BuildControlFiltersContent() in c:\\This.Isnt.Really.The.App\\MasterPages\\NotTheRealName.Master:77
   ASP.masterpages_NotTheRealName_master.__BuildControl__control14() in c:\\This.Isnt.Really.The.App\\MasterPages\\NotTheRealName.Master:76
   ASP.masterpages_NotTheRealName_master.__BuildControl__control9() in c:\\This.Isnt.Really.The.App\\MasterPages\\NotTheRealName.Master:25
   ASP.masterpages_NotTheRealName_master.__BuildControlMainForm() in c:\\This.Isnt.Really.The.App\\MasterPages\\NotTheRealName.Master:24
   ASP.masterpages_NotTheRealName_master.__BuildControlPageBody() in c:\\This.Isnt.Really.The.App\\MasterPages\\NotTheRealName.Master:22
   ASP.masterpages_NotTheRealName_master.__BuildControlTree(masterpages_NotTheRealName_master __ctrl) in c:\\This.Isnt.Really.The.App\\MasterPages\\NotTheRealName.Master:1
   ASP.masterpages_NotTheRealName_master.FrameworkInitialize() in c:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\Temporary ASP.NET Files\\root\\5883765a\\95915a02\\App_Web_p6javn8g.0.cs:0
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1236
   System.Web.UI.Page.get_Master() +141
   System.Web.UI.Page.ApplyMasterPage() +60
   System.Web.UI.Page.PerformPreInit() +109
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1452

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927


I apologize if this has been addressed elsewhere; I was unable to find a corresponding error report in a search of forum posts.
bbirney
 
Posts: 8
Joined: Mon Feb 08, 2010 7:44 pm

Clarification

Postby bbirney » Mon Feb 08, 2010 9:40 pm

I should add, for clarity, that these pages do not crash when I am not profiling the app in ANTS.
bbirney
 
Posts: 8
Joined: Mon Feb 08, 2010 7:44 pm

Oops

Postby bbirney » Mon Feb 08, 2010 9:43 pm

I see that I posted this in the wrong forum. I will re-post in the correct forum.
bbirney
 
Posts: 8
Joined: Mon Feb 08, 2010 7:44 pm


Return to ANTS Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests