473,287 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

AJAX Script Manager, 3.5, and Master Page Woes

I have a peculiar problem here that I did not have until I migrated from
ASP.NET 2.0 to 3.5.

I use a master page for my application. Because the master page uses update
panels I have the scriptmanager control on the master page. Any pages in the
app that uses the master page under 2.0 automatically used that script
manager if any AJAX controls were involved. Everything was well with the
world and we all sang ohmmmmmmmmmmmm....

After migrating to 3.5 I get the following error on pages that use AJAX
within the asp:Content:

A ScriptManager is required on the page to use ASP.NET AJAX Script Components.

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.InvalidOperationException: A ScriptManager is
required on the page to use ASP.NET AJAX Script Components.

Hmmmm, okay, no brainer here, added a scriptmanagerproxy, got the same
error. Let's see, I add a scriptmanager to the page within the asp:Content
and lo and behold, I get the following error:

Only one instance of a ScriptManager can be added to the page.

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.InvalidOperationException: Only one instance of a
ScriptManager can be added to the page.

Anyone else having this type of problem and found the answer? Thanks in
advance.
Jun 27 '08 #1
2 5501
I need to add as stated below that when I add the scriptmanagerproxy to the
child page I still get the same error "No scriptmanager present." Most
likely the problem is I don't understnad the proxy's use, but the help info,
while explaining what it is used for, does little to show by example how to
use it.

Thanks,

DJ

"DJ" wrote:
I have a peculiar problem here that I did not have until I migrated from
ASP.NET 2.0 to 3.5.

I use a master page for my application. Because the master page uses update
panels I have the scriptmanager control on the master page. Any pages in the
app that uses the master page under 2.0 automatically used that script
manager if any AJAX controls were involved. Everything was well with the
world and we all sang ohmmmmmmmmmmmm....

After migrating to 3.5 I get the following error on pages that use AJAX
within the asp:Content:

A ScriptManager is required on the page to use ASP.NET AJAX Script Components.

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.InvalidOperationException: A ScriptManager is
required on the page to use ASP.NET AJAX Script Components.

Hmmmm, okay, no brainer here, added a scriptmanagerproxy, got the same
error. Let's see, I add a scriptmanager to the page within the asp:Content
and lo and behold, I get the following error:

Only one instance of a ScriptManager can be added to the page.

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.InvalidOperationException: Only one instance of a
ScriptManager can be added to the page.

Anyone else having this type of problem and found the answer? Thanks in
advance.
Jun 27 '08 #2
Heh heh, found the problem. When I upgraded the site, I failed to upgrade the
version of the AJAX tookit from the 2.0 version to the 3.5 version. When I
replaced that, the scriptmanagerproxy worked fine.

Ah, the adventure...

"DJ" wrote:
I have a peculiar problem here that I did not have until I migrated from
ASP.NET 2.0 to 3.5.

I use a master page for my application. Because the master page uses update
panels I have the scriptmanager control on the master page. Any pages in the
app that uses the master page under 2.0 automatically used that script
manager if any AJAX controls were involved. Everything was well with the
world and we all sang ohmmmmmmmmmmmm....

After migrating to 3.5 I get the following error on pages that use AJAX
within the asp:Content:

A ScriptManager is required on the page to use ASP.NET AJAX Script Components.

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.InvalidOperationException: A ScriptManager is
required on the page to use ASP.NET AJAX Script Components.

Hmmmm, okay, no brainer here, added a scriptmanagerproxy, got the same
error. Let's see, I add a scriptmanager to the page within the asp:Content
and lo and behold, I get the following error:

Only one instance of a ScriptManager can be added to the page.

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.InvalidOperationException: Only one instance of a
ScriptManager can be added to the page.

Anyone else having this type of problem and found the answer? Thanks in
advance.
Jun 27 '08 #3

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

Similar topics

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...
3
by: Shailesh Patel | last post by:
Hi, Where can I find good tutorial for AJAX with Masterpages. Thank you in advance. Shailesh
0
by: Harry | last post by:
I have a master page with one content window for asp pages. I place three columns in the page using css ( it appears that all the css must be inherited from the master page). The only way I seem to...
3
by: Mike TI | last post by:
Oct 20, 2007 01:00pm Hi all When you create an Ajax enabled web site, the application creates the default page with a "Script Manager". I created a Master Page. I then created a "Home"...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
1
by: Mark B | last post by:
This is my first try at using AJAX. I want the calendars to be enabled if the user checks CheckBox1. It works OK for a normal all page refresh but once I introduced the AJAX code it stopped...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
8
by: Tomasz J | last post by:
Hello developers, After migrating my web project application (using the old model) to .Net Framework 3.5 and Ajax Control Toolkit release 20820 the Accordion control no longer works correctly....
3
by: Bobby Edward | last post by:
I had a simple admin form for "Categories"... Details View: To INSERT new Category Grid View: To View, Edit and Delete all Categories I decided to put the INSERT Details View inside of a...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.