473,414 Members | 1,757 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,414 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 5509
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.