Last post Oct 09, 2017 01:58 AM by Cathy Zou
Oct 05, 2017 07:08 PM|Gaston Leblanc|LINK
I copied an asp.net website to another computer, and tried to compile it. First I used Nuget package manager to load the Ajax Control Toolkit from codeplex. This got most of the ajax controls working, but a few basic ones (that often come even without
the toolkit) did not compile. Nor did they show up in the toolbox that appears when you are viewing a form.
I think the problem is that certain built-in controls also exist in the toolkit, or maybe they don't and have to be loaded some other way.
One compile error I get is:
Warning Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
The web.config has:
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
And a page with the scriptmanager has:
<asp:ScriptManager ID="ScriptManager1" runat="server">
I do see that the prefix is different, but if I change the 'asp' to 'ajaxToolkit' I still get an error.
Oct 06, 2017 06:31 AM|Cathy Zou|LINK
Hi Gaston Leblanc,
For you problem, I suggest you could drag 'ScriptManager' from toolbox to see what happened.
Check the usage of 'ScriptManager' by referring to the flinks below:
and related thread in the following :
Oct 08, 2017 04:44 PM|Gaston Leblanc|LINK
The links don't help solve this specific problem, but I did try some steps that offer clues:
I opened an asp page in design view, and looked at the toolbox window. The "Ajax Extensions" tab was invisible.
I right-clicked on the toolbox and chose "show all".
The "Ajax Extensions" tab was now visible, but now all the controls under it (like script manager) were greyed out.
So then I had the idea to create a totally new website in a different folder, create a dummy page, and see if the toolbox had the Ajax Extensions". I did that, and the extensions were there, not grayed out. So I dragged the script-manager to the page.
That worked too. I saved the website. So then I got out of visual studio, and copied webpages and folders from the original website (folders included app_code, app_data, etc). Then I went back into visual studio and tried to compile the project.
Now the BUILD command is missing! I can't compile in VS, given that I don't have a BUILD command.
So now what?
Oct 09, 2017 01:58 AM|Cathy Zou|LINK
For your problem, i suggest you could reset toolbox by roght click toolbox,
Or close and reopen Vs.
You also could following the steps provided in the following threads: