ThreadAbort
Calling this method terminates the thread...

Ajax Control Toolkit problem

Wednesday, March 26, 2008 2:49 AM

I need to research this a bit more, but I will give a quick fix that I did.

So, I started an AJAX Web Application in Visual Studio 2008 and then added the latest Ajax Control Toolkit for 3.5.  I made a simple page and wanted to use the Auto Complete Control.  So, I added a simple text box and then added the Auto Complete Extender.  There was then a item to add the event of this control to your code behind.

I got this error:

Cannot create page method "GetCompletionList" because no CodeBehind or CodeFile was found.

I spent quite a few hours looking throuh solutions and couldn't find anything that was of much help.

I decided to start over.  I created the application a little differently this time.  Instead of a new project, I started a New Web Site.  Repeated the same steps and it works fine.

UPDATE:
The problem has to do with VSWebProjectItem.  The standard AJAX Web Application with project file does not consider itself a "Web Project" and causes the AJAX toolkit to error.


Feedback

# re: Ajax Control Toolkit problem

Yes, I've got the same issue? Is there any fix for this?
3/3/2009 3:58 AM | Grahame Horner

# re: Ajax Control Toolkit problem

@Grahame

Instead of creating a "Web Site" create a standard project.

File..New..Project and not File..New..Web Site
3/3/2009 12:54 PM | Chris

# re: Ajax Control Toolkit problem

I am trying to use the AjaxControlToolkit in a ASP.NET Web Application and it won't recognize me the ajaxtoolkit tags. I added the dll as a referece, but still no luck.

Can you please help me?

Thanks, 3/16/2009 12:59 PM | David

# re: Ajax Control Toolkit problem

You may need to add the reference to the ajax controls in your aspx page.

<%@ Register assembly="AjaxControlToolkit"
namespace="AjaxControlToolkit" tagprefix="ajax" %> 3/30/2009 7:59 AM | Adam

# re: Ajax Control Toolkit problem

I've got the same issue. I created a new project (not website) and the reference is there however it was called "cc1" instead of ajax :S I renamed it but it didn't help. 5/18/2009 11:12 PM | Oskar

# re: Ajax Control Toolkit problem

Here's an explaination for the issue... This is going to ruin my whole school project!! :@

http://ajaxcontroltoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=11837&FocusElement=CommentTextBox 5/18/2009 11:21 PM | Oskar

# re: Ajax Control Toolkit problem

first add that dll file into c:/windows/microsoft.net folder.Then open VS2010,
right click "General" tab in toolbox -> add tab. give an appropriate name, then right click on it and click "choose items", then browse to the path where the dll file resides. and click ok. 9/15/2009 3:16 PM | kk

# re: Ajax Control Toolkit problem

I tried creating a project and also a web site. I also tried reinstalling the AjaxControlKit DLL. Unfortunately I'm still getting the same error. Has anyone had any luck solving this? 11/9/2009 1:18 AM | Bryan

# re: Ajax Control Toolkit problem

i am having a problem in creating the controls of ajax.The problem is in creating the control at design the draging of control is not creating but at source while the control is dragged it is creating. 2/5/2010 5:27 AM | Deepthi

Post a comment





 

Please add 7 and 8 and type the answer here: