.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Debugging goes into Assembly code on AjaxControlToolkit.ExtenderControlBase.OnLoad. WHY?

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :ASP.Net

Hi all,

Not sure why this is happening. Every time I try to debug an Asp.Net page it will eventually go into assembly code showing
the following lines on the top:


--- C:\Users\swalther\Projects\AspNetAjax\Releases\30930\AjaxControlToolkitSource\AjaxControlToolkit\ExtenderBase\ExtenderControlBase.cs

00000000 push ebp 00000001
mov ebp,esp 00000003

I do have this line in page and that was never changed:

Why this is happening? Thank you

View Complete Post

More Related Resource Links

Debugging: DataTips, Visualizers and Viewers Make Debugging .NET Code a Breeze


There is a whole host of new goodies in upcoming release of Visual Studio 2005 that will enhance your debugging experience. One such improvement will make it easy to visualize types within the debugger. This article discusses those improvements and covers debugger attributes and type visualizers. In addition, the author shows you how to extend the display of your own types with custom attributes and how to plug in an assembly to visualize.NET types built into the framework.

Morgan Skinner

MSDN Magazine May 2004

CLR Debugging: Improve Your Understanding of .NET Internals by Building a Debugger for Managed Code


With the release of .NET, the Microsoft scripting strategy has evolved. Script engines can now compile or interpret code for the Microsoft common language runtime (CLR) instead of integrating debugging capabilities directly into apps through Active Scripting. With that change comes a new set of published services for including debugging functionality in a custom host application. You'll see how to use the debugging services published in the .NET Framework to create a full-featured CLR debugger that allows you to set breakpoints, view call stacks, browse variables, view processes, enumerate threads, and perform other important debugging tasks.

Mike Pellegrino

MSDN Magazine November 2002

Using tabs from the AjaxControlToolkit causes error: ...control contains code blocks (i.e. <% ... %>


I'm getting the error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

When attempting to add the tabs from the AjaxControlToolkit.  A little background..Theres an existing aspx page in a microsite which used the accordion control and the tabbed control ...I need to modify this page to use a different masterpage. 

The original site was .Net Framework 2.0 and the page in question used AjaxControlToolkit 1.0. which I manually installed originally.  Some of the site has been further developed using the .Net Framework 3.5.  (Come with AjaxControlToolkit) Now I have come to update this aspx page and I get the error above.

I have narrowed the down to the TabContainer (I think)  Does anyone have any experience with this sort of problem?  Also what version of the AjaxControlToolkit should be with the .Net Framework 3.5? I have 1.0.20229.20821. 

I also tried to browse to the AjaxControlToolkit.dll to add the tools to the tool box as they're missing... thinking this may be an indicator as to why it wasn't working. I get the error: 'There was an error loading types from assembly C:\inetpub\wwwroot\project\Bin\AjaxControlToolkit.dll Could not load file or assembly 'System.Web.Extensions. Version=

SvcUtil-generated code or shared interface/data contract assembly?

If you control both service and client is there any benefit in using svcutil.exe to generate client proxies? Or is it better to share interface/data contract assembly between client and service?

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. There is not enou

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070) I had this error on one of my websites today, I've done some searching trying to figure out what might have caused this error. The server is fine and it does not seem to be a disk space issue. I fixed the problem by copying my back-up file over the website on the server and it works fine now. I read mabey it has something to do with the ajaxcontroltoolkit.dll file? I just wont to try to pin-point the problem so it dosen't happen again, or on any of my other sites. Any ideas or suggestions on what might be the problem or what to check?  Thanks! DA

adding onload event from code behind for Google Maps

Im working with Google maps start turoail: http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorldAs you can see there's a line: <body onload="initialize()">Now since, I want to have Google Maps on page A.aspx within a masterpage main.master, I dont have the <body> tag available to me in the A.aspx page.I preferably DONT want to have the body tag as runat="server", since Google Maps is not relevant for all pages and I dont like a server control when its not needed as they slow things down (even a bit).I tried this in A.aspx.vb, but it didnt work:Dim javaScript As New StringBuilder        javaScript.Append("<script type='text/javascript'>")        javaScript.Append("window.document.body.onload = initialize();")        javaScript.Append("</script>")        Me.Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "BodyLoadUnloadScript", javaScript.ToString())How can I add the onload event from code behind?

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit.dll' or one of its depen



Server Error in '/AJX' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit.dll' or one of its dependencies. The system cannot find the file specified.

Source Error:

[No relevant source lines]

Source File: none    Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit.dll' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableL

Security problem while debugging Infopath custom code


I have made a simple InfoPath formular, and in "Submit Options", checked  "Perform custom action using Code", and write some custom code...

Then i run the debug over this code. The InfoPath formular opened in preview mode, and i could successfully step through InternalStartup method.

I did put some data in fields and clicked on "Submit" button. I expected to be continue debugging at the beging of "FormEvents_Sumbit" method, but i got this error message:

Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.
   at TEST_FORM2.FormCode.FormEvents_Submit(Object sender, SubmitEventArgs e)
   at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnSubmit(DocReturnEvent pEvent)
   at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnSubmitRequest(DocReturnEvent pEvent)"

After i clicked OK to this error, i got another one, a little different:

"InfoPath cannot submit the form.
The OnSubmitRequest event handler did not work.
Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint

MasterPage client onload from ContentPage and get value from ContentPage code behind



I am trying to get value of  a variable"offset" code behind of content page which is set from default.aspx through onload event from master page.

But it gives null value every time. Here is my code. Any ideas or solution?


  <asp:ContentPlaceHolder runat="server" id="Headers">

<script language=javascript>
    function mp_onload()
      if(window.getOffsetTime != null)


<body onload="mp_onload();">


<asp:Content ID="Content1" ContentPlaceHolderID="Headers" Runat="Server">
<script language="Javascript">

function getOffsetTime{
    var dt = new Date();
    document.getElementById('<% hdn.ClientID %>').value = dt.getTimezoneOffset() / 60;   


Error debugging sandboxed solution: The sandboxed code execution request was refused because the San



I'm trying to deploy a sandboxed solution but I don't succeed.
I created an empty sharepoint project, added a (regular) webpart to it and that's it. Didn't add any code of my own to the project.

Then I hit F5 to deploy it to my sharepoint server (visual studio and sharepoint running on the same machine)

First it gives me an attach security warning, where I hit "attach"
Then a message about scrip debugging disabled where I click ok to enable it.

Then my sharepoint site opens, I log in and it displays my default team site page.
I go edit the page and add my custom web part, and when I click add I get a loading window that seems to hang for a while and then an error:

The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request

I searched google and here on the forums, found several topics describing the same.
I checked and in Central Admin the service "Microsoft SharePoint Foundation Sandboxed Code Service " is started
I also tried to execute the powershell script (even though the server is not running DC)

All to no avail.
Am I missing something here, why do I get this error ?

CodeDom: Is it possible to use structured and unstructured composition for the same code assembly?


I haven't found a way to do this yet and am beginning to suspect it can't be done as I'd like... here's what I'd like to do:

I would like to use structured code composition to create a CodeCompileUnit and a number of CodeTypeDeclarations and related CodeDom objects to build up an assembly.  However, at certain points, I would like to take a raw code string containing a class definition with format tags which will be replaced as multiple strongly-typed versions of this base class are generated.  I would like to use a CodeSnippet object of some kind to form this string into a class object and add it to the assembly I am building up.  I would also like to be able to continue to add additional CodeDom members to the class object generated from the raw string.

I can't seem to find a way to easily translating between a structured CodeDom object and raw code text.

Any suggestions?  Need a better explaination??

Thanks in advace.

Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

[Business Logic Handler debugging] - The assembly is not loaded by inetinfo.exe process


Hi there,

Here is my story - my merge replication topology consists of one publisher (sql server 2008), a distributor (same server as publisher) and a subscriber (sql server 3.5 CE). I use web synchronization for my merger replication. Publisher, Distributor, Subscriber and IIS run all on the same (development) machine. I use MSSMS to synchronize the subscriber.

I've created a custom resolver (Business Logic Handler) that should perform some data modification that has been inserted at the subscriber, before it is merged into the publisher. It should but it doesn't so I need to debug it to see what's going on. I've followed steps form here http://msdn.microsoft.com/en-us/library/ms365150.aspx on how to debug a business logic handler on a Web server using Web synchronization and I'm stuck at step 7. MY PROBLEM IS when I attache to inetinfo.exe process from VS2008, I don't see my assembly to be loaded neither in Output nor in Modules window and the break points say that they will not be hit because the symbols were not loaded.

I configured web synchronization almost exactly as it says here http://msdn.microsoft.com/en-us/library/ms151810.aspx , the only difference is that I didn't configured and

Problem in the code of "Assembly" in Visual studio 2010


Program is

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Myclasslib1;

namespace WindowsFormsApplication5
    public partial class Form1 : Form
        public Form1()
        class c1=new class();
        private void button1_Click(object sender, EventArgs e)
            int x=c1.sum(Convert.ToInt32(TextBox.Text),Convert.ToInt32(TextBox.Text));
 Error is

1.Error    6    'WindowsFormsApplication5.Form1.c1' does not contain a definition for 'sum'   

Problem in the code of "Assembly" in Visual studio 2010 of C#


The code is as follows

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

using myclasslib;

namespace myclasslib


public partial class Form1 : Form


public Form1()




Myclass m1 = new Myclass();

Myclass2 m2 = new Myclass2();

private void button1_Click(object sender, EventArgs e)


int s = m1.Sum(35, 36, 37);



private void button2_Click(object sender, EventArgs e)


string s2=m2.StringFormat("abhishek");



class1 c1 = new class1();

private void button3_Click(object sender, EventArgs e)


int z=c1.MyFun(56,98);

MessageBox.Show(z.ToString()); } } } }

Errors are :

Error    3    The type or namespace name 'class1' could not be found (are you missing a using directive or an assembly reference?)   

Error    6    'myclasslib.Myclass2' does not contain a definition for 'StringFormat' and no extension method 'StringFormat' acceptin

unable to reference extender assembly ajaxcontroltoolkit


I have been using ajax extenders in a large web-based app without a hitch until tonite.  When I went to add an extender to a new web form, received the error message: "unable to reference extender assembly ajaxcontroltoolkit, Version = 4.1.50401.0,culture=neutral, public key token = (16 character key which I'm not including)"

If I run the app, all existing forms with extenders function as always....but I cannot add extenders to any existing or new form.

I don't have a clue what happened as I was creating forms and adding extenders last nite, but can't now.

Can anybody suggest a solution?

Could not load file or assembly 'Ajaxcontroltoolkit' or one of its dependencies. Access denied


Hi all,

I have searched a lot in google, but could not find the same scenario i am facing.

I have a asp.net 3.5 web application, which use ajax toolkits. Also, I am impersonating the logged active directory users to connect sql server with their own windows credential. Everything fine, but sometimes, I am getting the error "Could not load file or assembly 'Ajaxcontroltoolkit' or one of its dependencies. Access denied". If I republish the site, the error will go. I dont know which cause to this error?

Any solution would be highly appreciated.

Code Optimized Web Development Profile (VS 2010 and .NET 4.0 Series)

When you first run VS 2010 it prompts you to select an IDE profile to use. The profile you select will configure how tool windows are displayed/docked in the IDE by default and set the default keyboard shortcuts. You can then customize any of these settings by using the Tools->Options menu within the IDE and then override/change them. You can also later reset your profile and pick a different one by choosing the Tools->Import and Export Settings menu command.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend