472,952 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,952 software developers and data experts.

Problems compiling/running ASP.NET AJAX sample pages...

Using VS 2005:
This morning, following the instructions here:
http://ajax.asp.net/docs/overview/In...SPNETAJAX.aspx,
I installed ASP.NET AJAX on my WinXP Pro development machine. Following
that, I installed the "November 2006 CTP" and "Control Toolkit" - then
I re-booted my machine.

Next I tried to create a simple, sample page...
I have the AJAX controls in my toolbox, but when I drag on onto my page
it gets underlined - denoting a compile error. For example, when I drag
a script manager on to my page, the compile error states (NOTE: Before
dragging the script manager control on the page, it compiled and ran
w/o incident):

Error 1 Element 'ScriptManager' is not a known element. This can occur
if there is a compilation error in the Web site. C:\Documents and
Settings\...ebSites\TaskList\TodoList.aspx 4 10 C:\...\TaskList\

So, thinking my page was a problem, I created a sample ASP.NET AJAX
page from
http://ajax.asp.net/docs/ViewSample....verviewCS.aspx
and placed it on my local web server. When I navigated to my local
page, I got the error (ERROR_01) attached at the end of this message.

It appears that .NET has not found the DLLs in my "C:\Program
Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\"
folder. Here's a list of the ones that are there:
AJAXExtensionsToolbox.dll
Microsoft.Web.Extensions.Design.dll
Microsoft.Web.Extensions.dll
Microsoft.Web.Preview.dll

I'm thinking that I've missed something simple... can anyone help?

Thanks for you attention to this matter,
celoftis

<---------------------------------------ERROR_01
BELOW----------------------------------------->
Server Error in '/' 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 type
System.Web.UI.WebControls.ScriptManager from assembly System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

Source Error:
Line 16: <form id="form1" runat="server">
Line 17: <div>
Line 18: <asp:ScriptManager ID="ScriptManager1" runat="server" />
Line 19: <asp:UpdatePanel ID="UpdatePanel1" runat="server">
Line 20: <ContentTemplate>
Source File: c:\inetpub\wwwroot\ASP.NET\AJAX\Updatepanel.aspx Line:
18
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032
<---------------------------------------ERROR_01
ABOVE----------------------------------------->

Nov 10 '06 #1
10 4365
Did you create your project from the Visual Studio ASP.NET AJAX project
template? If so, it should create all the required references and
web.config entries. Otherwise you'll have to add them manually.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"celoftis" <ce******@gmail.comwrote in message
news:11*********************@h54g2000cwb.googlegro ups.com...
Using VS 2005:
This morning, following the instructions here:
http://ajax.asp.net/docs/overview/In...SPNETAJAX.aspx,
I installed ASP.NET AJAX on my WinXP Pro development machine. Following
that, I installed the "November 2006 CTP" and "Control Toolkit" - then
I re-booted my machine.

Next I tried to create a simple, sample page...
I have the AJAX controls in my toolbox, but when I drag on onto my page
it gets underlined - denoting a compile error. For example, when I drag
a script manager on to my page, the compile error states (NOTE: Before
dragging the script manager control on the page, it compiled and ran
w/o incident):

Error 1 Element 'ScriptManager' is not a known element. This can occur
if there is a compilation error in the Web site. C:\Documents and
Settings\...ebSites\TaskList\TodoList.aspx 4 10 C:\...\TaskList\

So, thinking my page was a problem, I created a sample ASP.NET AJAX
page from
http://ajax.asp.net/docs/ViewSample....verviewCS.aspx
and placed it on my local web server. When I navigated to my local
page, I got the error (ERROR_01) attached at the end of this message.

It appears that .NET has not found the DLLs in my "C:\Program
Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\"
folder. Here's a list of the ones that are there:
AJAXExtensionsToolbox.dll
Microsoft.Web.Extensions.Design.dll
Microsoft.Web.Extensions.dll
Microsoft.Web.Preview.dll

I'm thinking that I've missed something simple... can anyone help?

Thanks for you attention to this matter,
celoftis

<---------------------------------------ERROR_01
BELOW----------------------------------------->
Server Error in '/' 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 type
System.Web.UI.WebControls.ScriptManager from assembly System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

Source Error:
Line 16: <form id="form1" runat="server">
Line 17: <div>
Line 18: <asp:ScriptManager ID="ScriptManager1" runat="server" />
Line 19: <asp:UpdatePanel ID="UpdatePanel1" runat="server">
Line 20: <ContentTemplate>
Source File: c:\inetpub\wwwroot\ASP.NET\AJAX\Updatepanel.aspx Line:
18
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032
<---------------------------------------ERROR_01
ABOVE----------------------------------------->

Nov 10 '06 #2
you should have created an ajax project, that adds/updates the web config
to have the references to the ajax dlls.

-- bruce (sqlwork.com)
"celoftis" <ce******@gmail.comwrote in message
news:11*********************@h54g2000cwb.googlegro ups.com...
Using VS 2005:
This morning, following the instructions here:
http://ajax.asp.net/docs/overview/In...SPNETAJAX.aspx,
I installed ASP.NET AJAX on my WinXP Pro development machine. Following
that, I installed the "November 2006 CTP" and "Control Toolkit" - then
I re-booted my machine.

Next I tried to create a simple, sample page...
I have the AJAX controls in my toolbox, but when I drag on onto my page
it gets underlined - denoting a compile error. For example, when I drag
a script manager on to my page, the compile error states (NOTE: Before
dragging the script manager control on the page, it compiled and ran
w/o incident):

Error 1 Element 'ScriptManager' is not a known element. This can occur
if there is a compilation error in the Web site. C:\Documents and
Settings\...ebSites\TaskList\TodoList.aspx 4 10 C:\...\TaskList\

So, thinking my page was a problem, I created a sample ASP.NET AJAX
page from
http://ajax.asp.net/docs/ViewSample....verviewCS.aspx
and placed it on my local web server. When I navigated to my local
page, I got the error (ERROR_01) attached at the end of this message.

It appears that .NET has not found the DLLs in my "C:\Program
Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\"
folder. Here's a list of the ones that are there:
AJAXExtensionsToolbox.dll
Microsoft.Web.Extensions.Design.dll
Microsoft.Web.Extensions.dll
Microsoft.Web.Preview.dll

I'm thinking that I've missed something simple... can anyone help?

Thanks for you attention to this matter,
celoftis

<---------------------------------------ERROR_01
BELOW----------------------------------------->
Server Error in '/' 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 type
System.Web.UI.WebControls.ScriptManager from assembly System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

Source Error:
Line 16: <form id="form1" runat="server">
Line 17: <div>
Line 18: <asp:ScriptManager ID="ScriptManager1" runat="server" />
Line 19: <asp:UpdatePanel ID="UpdatePanel1" runat="server">
Line 20: <ContentTemplate>
Source File: c:\inetpub\wwwroot\ASP.NET\AJAX\Updatepanel.aspx Line:
18
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032
<---------------------------------------ERROR_01
ABOVE----------------------------------------->

Nov 10 '06 #3
Thanks for you quick responses!

I created a "New Web Site" from the "ASP.NET AJAX CTP-Enabled Web Site"
template. Shouldn't that get the correct reference to the
"Microsoft.Web.Extensions.dll"?

Being a newbie to this, how do I manually create the reference in
"Web.config"?

celoftis

Nov 10 '06 #4
More info...

I went into my web site's "Class View" explorer, and expanded the
"Project References" tree... both "Microsoft.Web.Extensions" and
"\Microsoft.Web.Extensions.Design" are listed. I am able to drill down
on "Microsoft.Web.UI.ScriptManager" and see all its methods and
properties...but I am still getting the same compile error on the
<asp:ScriptMananger... code

Further, I see the following in my "Web.config":
<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="Microsoft.Web.Extensions.Design, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>

Seems like the compiler isnt' able to read the DLLs or something...

celoftis

Nov 10 '06 #5
if you are running team studio, read the readme and follow directions,
otherwise just add a reference to it like any other with the ide.

-- bruce (sqlwork.com)

"celoftis" <ce******@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
Thanks for you quick responses!

I created a "New Web Site" from the "ASP.NET AJAX CTP-Enabled Web Site"
template. Shouldn't that get the correct reference to the
"Microsoft.Web.Extensions.dll"?

Being a newbie to this, how do I manually create the reference in
"Web.config"?

celoftis

Nov 10 '06 #6
That didn't help...

Nov 11 '06 #7
I wouldnt waste my time learning Ajax if I were you. It will all
become obsolete very soon. Now that other "real" smart client internet
apps can be created in better ways, like Adobe Flex, the mish-mash
called Ajax will just be thrown away. Don't be led down the garden
path by the MS idiots again, Ajax is destined to go the same way as VB
6.0

The Grand Master
celoftis wrote:
That didn't help...
Nov 16 '06 #8
You may be right in the long term, but in the short and medium term AJAX is
here to stay. And it wasn't the "MS idiots" that popularized AJAX, it was
Google. Are they idiots too? A ton of web sites use AJAX in one form or
another these days. Are they all idiots?
AJAX is a good solution for now while other potentially better solutions
mature.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Master Programmer" <ma***************@outgun.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
>I wouldnt waste my time learning Ajax if I were you. It will all
become obsolete very soon. Now that other "real" smart client internet
apps can be created in better ways, like Adobe Flex, the mish-mash
called Ajax will just be thrown away. Don't be led down the garden
path by the MS idiots again, Ajax is destined to go the same way as VB
6.0

The Grand Master
celoftis wrote:
>That didn't help...

Nov 16 '06 #9
To solve this problem you have to ensure to uninstall all ajax related components from your computer. Go to www.asp.net and download all the latest components. Then refererence your web application with the latest AjaxControlToolkit.dll

---
Posted via DotNetSlackers.com
Nov 20 '06 #10
Ajax.... Just another stupid name for another boring idea.

The Master

Steve C. Orr [MVP, MCSD] wrote:
You may be right in the long term, but in the short and medium term AJAX is
here to stay. And it wasn't the "MS idiots" that popularized AJAX, it was
Google. Are they idiots too? A ton of web sites use AJAX in one form or
another these days. Are they all idiots?
AJAX is a good solution for now while other potentially better solutions
mature.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Master Programmer" <ma***************@outgun.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
I wouldnt waste my time learning Ajax if I were you. It will all
become obsolete very soon. Now that other "real" smart client internet
apps can be created in better ways, like Adobe Flex, the mish-mash
called Ajax will just be thrown away. Don't be led down the garden
path by the MS idiots again, Ajax is destined to go the same way as VB
6.0

The Grand Master
celoftis wrote:
That didn't help...
Nov 21 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
7
by: Brian | last post by:
First off, I am sorry for cluttering this group with my inept questions, but I am stuck again despite a few hours of hair pulling. I have a function (below) that takes a list of html pages that...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
6
by: Andrew Matthews | last post by:
Hi All, I have the following little class of iterators that allow me to iterate over elements in the file system. I have nested some of them, and then added Func<FileInfo, booldelegates to filter...
9
by: RBM007 | last post by:
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same...
9
by: =?Utf-8?B?SGFyZHkgV2FuZw==?= | last post by:
Hi all, I followed first walk through sample from http://ajax.asp.net/docs/tutorials/IntroductionUpdatePanel.aspx to create my first testing page, The problem is after I clicked that botton, it...
1
by: Angus | last post by:
Hello I am running this example from http://www.w3schools.com/ajax/ajax_server.asp <html><body> <script type="text/javascript">function ajaxFunction() { var xmlHttp; try { // Firefox,...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
1
by: E11esar | last post by:
Hi there. I have created an asp.net page with C# and have added two tabs using the respective AJAX control. I am trying to add a table within an AJAX Accordion control in the second tab but I am...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.