D
DJ
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.
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.